Titanium Community Questions & Answer Archive

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

send sms from app

hello is it possible with titanium mobile to send sms from within an app?

— asked March 19th 2010 by Christian Sigl
  • android
  • iphone
  • mobile
  • sms
0 Comments

9 Answers

  • Accepted Answer

    I have not found a way to send one within an app but you use the following call and it will pass the phone number and open up sms to send a text

    Titanium.Platform.openURL('sms:'+e.rowData.value);

    — answered March 19th 2010 by Todd Tompkins
    permalink
    0 Comments
  • can i pass a string for the text-message too?

    — answered March 19th 2010 by Christian Sigl
    permalink
    0 Comments
  • I just implemented this in an iPhone app. It allows you to open up the SMS dialogue with the recipients and body text specified. Works as advertised.

    — answered August 14th 2011 by Dave Miller
    permalink
    1 Comment
    • Thanks for sharing. will try and let you know

      — commented May 8th 2014 by Srikanth P
  • thanx you very much!

    — answered March 19th 2010 by Christian Sigl
    permalink
    0 Comments
  • wondering if this is possible in Android – using Intents ?

    — answered July 16th 2011 by Brian Dittmer
    permalink
    0 Comments
  • A module is in the plans ;) Be on the lookout on Monday. Twitter: @codeboxed

    — answered August 6th 2011 by Alexandru Budin
    permalink
    1 Comment
    • you mean ….is it today???

      — commented August 8th 2011 by MONY desu
  • Hi there,
    We are still in the development process. I am sorry for not specifying which Monday, but i was referring to next week, if everything goes well. Follow us on Twitter @codeboxed to get our latest updates. Thanks.

    — answered August 8th 2011 by Alexandru Budin
    permalink
    0 Comments
  • Hi!

    var intent = Ti.Android.createIntent({
                        action: Ti.Android.ACTION_SENDTO,
                        data: 'smsto:123456789'
    });
    
    intent.putExtra('sms_body', 'new message from me');
    Ti.Android.currentActivity.startActivity(intent);
    

    send sms with text!!

    — answered October 12th 2012 by Juan Cruz
    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.