Cordova: Launch the SMS app and make sure the SMS is sent

I see Cordova as a possible solution to the problem and want to ask if this is even possible before coding. I can't seem to find the definitive google documentation.

I want to launch the SMS application and determine if the user actually sent the SMS or just canceled.

Can I do it 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 can launch the SMS app and determine if the user has sent an SMS message or not from Cordova.

+3


source to share


1 answer


You can send sms using cordova.

If you just want to open the SMS app with a click, just add sms: YOURNUMBER before a href

.

This is the 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 can help.

Greetings

+6


source







All Articles