[英]Call external application from Unity mobile application
I would like to call the default sms and email editor from my unity 3d mobile application. 我想从统一的3d移动应用程序中调用默认的短信和电子邮件编辑器。 More specifically I want to give to my users the possibility to share their referral code calling and precompiling an email or an sms. 更具体地说,我想让我的用户可以共享他们的推荐代码调用并预编译电子邮件或短信。
The game is for Android and IOS both. 该游戏适用于Android和IOS。
Please ask for more details 请询问更多细节
Thanks in advance 提前致谢
Try: 尝试:
void SMS(long number, string message) {
string separator=(Application.platform == RuntimePlatform.IPhonePlayer)?";":"?";
Application.openURL(string.Format("sms:{0}{1}body={2}", number, separator, WWW.EscapeURL(message)));
}
Based on https://stackoverflow.com/a/19126326/785171 基于https://stackoverflow.com/a/19126326/785171
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.