Can I send an SMS from an HTML / Javascript application using the Phone SMS API?

I tried to play with Phonegap and created a small HTML / Javascript application to send SMS. I tried this code window.location.href = 'sms:XXXXXXXX06?body=Testing' , which opens a screen for manually sending sms, which I want to automate.

Please note: I am creating an Android application by uploading the project source code to build.phonegap.com , so I cannot change the .apk source.

Is it possible to do this only in Javascript?

+8
javascript cordova phonegap-plugins
source share
3 answers

To send SMS messages, see Phone SMS Plugin .

+3
source share
+3
source share

try to do something like this:

 <a href="smsto:000000000"> sms number</a> 

it works for me on an android device.

0
source share

All Articles