我正在使用 Adobe Flash 开发 iPhone 应用程序,但我不知道如何直接从该应用程序内发送文本消息。
你可以按照here的解释打开一个新的短信窗口
public function sms():void
{
const callURL:String="sms:1234567890";
var targetURL:URLRequest = new URLRequest(callURL);
navigateToURL(targetURL);
}
当该函数在手机上运行时,会启动默认的 SMS 客户端,其中的电话号码已输入
但是不打开短信客户端就可以发送短信吗?
还是只能通过调用外部服务器才能实现?
最佳答案
以下几乎是您唯一的选择:
http://www.adobe.com/devnet/air/quick_start_as/quickstarts/qs_using_uris.html
http://cookbooks.adobe.com/post_SMS_Texting_with_Flex_and_Air-12007.html
https://sites.google.com/site/freesmsuk/send-free-sms-with-flex
您必须测试这些方法中的任何一个是否适用于 iPhone,因为我知道第一种方法确实适用于 android。
关于iphone - 如何从 Flash (AS3) iPhone 应用程序发送短信,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5753303/