3

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.

4

1 回答 1

2

您可以使用各种 OpenURL 命令在 iOS 中打开众多应用程序。Android 也有类似的命名法。当然,我不知道下面是否适用于 Android,但值得一试。

       var sms_number : String = "+17032129831"
       Application.OpenURL("sms:" + sms_number);
于 2013-07-31T18:30:14.227 回答