Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unity send SMS message

I'm currently using Unity for developing an application for Android and IOS and I'm able to use the function: 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.

like image 671
Ice Phoenix Avatar asked Oct 16 '25 05:10

Ice Phoenix


1 Answers

You can use a variety of OpenURL commands to open up numerous apps in iOS. Android has a comparable nomenclature too. Of course I don't know if below will work in Android but it's worth a shot.

       var sms_number : String = "+17032129831"
       Application.OpenURL("sms:" + sms_number);
like image 120
apollosoftware.org Avatar answered Oct 18 '25 21:10

apollosoftware.org



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!