简体   繁体   English

从Unity移动应用程序调用外部应用程序

[英]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.

相关问题 从Unity打开iOS应用程序 - Open iOS application from Unity 你能从Windows 10 Universal应用程序调用外部应用程序吗? C# - Can you call an external application from a Windows 10 Universal application? c# 从任务栏隐藏外部应用程序 - Hide an external application from taskbar 来自移动应用的无法识别的密码 - Unrecognized Ciphers from mobile application 如何调用Excel宏,其中包含从C#应用程序调用的外部加载项? - how to call excel macro which contains call of external add-in from C# application? c#应用程序如何调用带有UI的外部windows应用程序? - How to call an external windows application with UI by a c# application? Unity3D-在移动应用程序和桌面应用程序之间传输数据 - Unity3D - Transfer Data between a Mobile and a Desktop Application 如何在Unity中运行外部应用程序并将其渲染为游戏中的GameObject? - How can I run an external application in Unity and render it as a GameObject in the game? 如何从 Unity 应用程序启动 Android 活动? - How to start an Android activity from a Unity Application? 如何从具有 AAD 设置的 asp.net mvc 应用程序调用外部网站 - How to call external websites from a asp.net mvc application which has AAD setup
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM