如何从 Flash (AS3) iPhone 应用程序发送短信
我正在使用 Adobe Flash 开发 iPhone 应用程序,但我不知道如何直接从应用程序内发送短信。
此处的说明打开一个新的短信窗口
public function sms():void
{
const callURL:String="sms:1234567890";
var targetURL:URLRequest = new URLRequest(callURL);
navigateToURL(targetURL);
}
您可以按照 在手机上运行时,会启动默认的 SMS 客户端并输入已输入的电话号码。
但是是否可以在不打开 SMS 客户端的情况下发送 SMS 文本消息?
或者只能通过调用外部服务器才能实现?
I am developing an iPhone app with Adobe Flash and I can't figure out how to send a text message directly from within the app.
You can open a new SMS window as explained here
public function sms():void
{
const callURL:String="sms:1234567890";
var targetURL:URLRequest = new URLRequest(callURL);
navigateToURL(targetURL);
}
When the function is run on a phone, the default SMS client is launched with the telephone number already entered
But is it possible to send an SMS text message without opening the SMS client?
Or is it only possible by calling an external server?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
以下几乎是您唯一的选择:
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,因为我知道第一种方法确实适用于 iPhone安卓。
Below are pretty much your only options:
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
You'll have to test if any of these methods work on iPhone, as I know that the first method does indeed work on android.
移动设备上的 Adobe AIR 的未来版本将支持本机扩展。使用此功能,开发人员可以利用任何本机移动功能。您可以加入 Adobe Prerelease 计划,深入了解 AIR 的这一功能以及未来的更多功能
Future versions of Adobe AIR on mobile are going to have support of Native Extensions. Using this, developers could make use of any of the native mobile features. You can join the Adobe Prerelease program for more insights into this and more future features of AIR
对于 Adobe Air as3 Android
短信:电话号码
?body=消息区域
问候
For Adobe Air as3 Android
sms:phone number
?body=message area
Regards