Unity发送短信 [英] Unity send SMS message

查看:116
本文介绍了Unity发送短信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在使用Unity开发适用于Android和IOS的应用程序,并且可以使用以下功能:Application.OpenURL("mailto:" + email_address + "?subject=Email&body=msg from Unity");

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");

从我的应用程序内发送电子邮件,我知道您可以使用类似的功能来打开移动设备的SMS系统,但是我不确定如何实际执行此操作.

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.

如果有人可以建议我如何通过"Application.OpenURL()"打开本机SMS系统,那就太好了.如果有人知道,我也愿意使用其他解决方案.

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.

推荐答案

您可以使用各种OpenURL命令在iOS中打开大量应用程序. Android也具有类似的命名法.当然,我不知道以下版本是否可以在Android中使用,但是值得一试.

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);

这篇关于Unity发送短信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆