send sms from app
hello is it possible with titanium mobile to send sms from within an app?
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);
-
can i pass a string for the text-message too?
-
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.
-
On android you can use this module: https://marketplace.appcelerator.com/apps/7704?restoreSearch=true#!overview
-
thanx you very much!
-
wondering if this is possible in Android – using Intents ?
-
A module is in the plans ;) Be on the lookout on Monday. Twitter: @codeboxed
-
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. -
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!!