Search code examples
iphoneandroidactionscript-3airflash-cs5

How to send SMS text message from Flash (AS3) iPhone app


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?


Solution

  • 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.