Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

MMS or SMS with Titanium?

I was just wondering if it was possible to create a SMS or MMS (Text Message / Media Message) via Titanium 1.4? I know that Emails are possible, but I would really like to be able to switch to the "Messages" app and send a SMS/MMS via my Application.

— asked August 26th 2010 by Colton Arabsky
  • mobile
0 Comments

2 Answers

  • Accepted Answer

    From your app you should be able to open the SMS text message app, but there's no programmatic means of sending a text message but there's an example of this in the Kitchen Sink, something like
    Ti.Platform.openURL('sms: 8019161980').

    check in kithcsink examples platform.js

    b.addEventListener('click', function()
    {
    switch(openURL)
    {
    case 0:
    {
    Titanium.Platform.openURL('http://www.google.com');
    b.title='Open URL (web)';
    openURL++;
    break;
    }
    case 1:
    {
    Titanium.Platform.openURL('tel:4043332222');
    b.title='Open URL (tel)';
    openURL++;
    break;
    }
    case 2:
    {
    Titanium.Platform.openURL('sms:4043332222');
    b.title='Open URL (sms)';
    openURL=0;
    break;
    }

    }
    

    });

    — answered August 27th 2010 by Varun Atluri
    permalink
    1 Comment
    • I am able to open sms this way but I cannot figure out how to also include the message. Do you know how to also add the "text" to the message?

      — commented September 3rd 2011 by Patty Mapes
  • nope, not currently

    — answered August 27th 2010 by danno watts
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.