I am looking to Cordova as a possible solution to a problem and want to ask if it is even possible before coding. I can't seem to find any conclusive documentation by Googling.
I want to launch the SMS app and the determine whether the user actually sent the SMS, or just cancelled.
Can I do that with Cordova?
[Update] I cannot guarantee that any application is installed on the user's device. I am just serving a web page and want to know if I could launch the SMS app and determine if the user sent an SMS or not with Cordova.
It is possible to send sms using cordova.
If you just want to open the SMS app with a clicked number, just add sms:YOURNUMBER
to a href.
This is a SMS plugin: https://github.com/cordova-sms/cordova-sms-plugin
It also has a callback
var success = function () { alert('Message sent successfully'); };
var error = function (e) { alert('Message Failed:' + e); };
sms.send(number, message, options, success, error);
Hope I could help.
Cheers
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With