Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by lonewolf · Apr 25, 2012 at 04:10 PM · sms

How to send sms in Unity Android Game?

I need to send sms in my Android game, how can i do that with Unity?

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

5 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Doctor · Apr 26, 2012 at 06:46 PM

I do not think that Unity supports SMS. If you really need it, you could imbed a script that, when activated, would bring up an application to send an SMS.

As of right now, I do not think that Unity supports SMS (possibly because not all OSes that Unity is on natively support SMS (all the various Windows OSes, all the various Mac OS X OSes)

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by Doctor · Apr 26, 2012 at 05:09 PM

I do not think that Unity supports SMS. If you really need it, you could imbed a script that, when activated, would bring up an application to send an SMS.

As of right now, I do not think that Unity supports SMS (possibly because not all OSes that Unity is on natively support SMS (all the various Windows OSes, all the various Mac OS X OSes)

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by Chowdery · Aug 04, 2013 at 09:48 AM

Hey mate, I was scrounging around for an answer to this issue as well, managed to find the below quote which does the job perfectly :).

 string mobile = "0437614201";
 Application.OpenURL("sms:" + mobile);
Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Jix · Sep 02, 2015 at 06:07 PM 0
Share

Thanks for the tip but how to include the message in the sms? I'm more interested in adding the message from Unity

avatar image DVFrance Jix · Aug 20, 2016 at 03:30 PM 0
Share

This code works for me, but I can't find a way to send multiple numbers...

 string numbers;
 string message;
 string url;

 url = "sms:"+numbers+"&body="+WWW.EscapeURL(message);
 Application.OpenURL(url);

avatar image AwesomeAlexx · Dec 26, 2016 at 04:53 PM 0
Share

I found a solution for multiple numbers : Topic unity answers

avatar image
0

Answer by smsapi · Nov 18, 2019 at 10:33 AM

The average open rate for transactional SMS is 98%, making it one of the more powerful ways to reach your contacts. It is an effective channel to send transactional messages to your customers like 2-factor authentication codes, order confirmations, shipping information, and more by simply connecting your system with a texting service using SMS API.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by KiraSof · Sep 13, 2021 at 12:46 PM

Hello, i am Using Unity 2020.3 and this worked well for me!

Application.OpenURL("sms://number");

it opens the sms app on t

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

9 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Receive, get, read SMS from Andoid device 1 Answer

Is it possible to send an SMS without opening SMS Composer? (Android) 3 Answers

How to use Application.OpenUrl("sms") for multiple numbers? 2 Answers

Is it possible to send SMS from an action in Unity? (Mobile iOS or Android) 1 Answer

How to avoid Unity from reloading the game when completing a share function from android? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges