- Home /
Unity OpenURL() SMS
Hi All,
I'm currently using: Application.OpenURL("mailto:" + email_address + "?subject=Email&body=msg from Unity");
to send emails from within my application, and I know you can use a similar function to open up the mobile devices SMS system however I'm unsure on how to actually go about this.
If anyone can please advise how I can open up the native SMS system through "Application.OpenURL()" that'd be fantastic. I'm also open to using an alternative solution if anyone's aware :)
Thanks in advance! :)
Answer by Chowdery · Aug 04, 2013 at 09:49 AM
Hey Guys, managed to find a resolution for this. The below code does the job perfectly :).
string mobile = "0437614201";
Application.OpenURL("sms:" + mobile);
If needed I found a solution post here for multiple destinataires: http://answers.unity3d.com/questions/870337/how-to-use-applicationopenurlsms-for-multiple-numb.html
Your answer
Follow this Question
Related Questions
A node in a childnode? 1 Answer
How to send sms from unity in ios platform 1 Answer
[Android] How to check if device can send SMS? 0 Answers
Application openurl sms parameters 2 Answers
Get Android Phone Number 1 Answer