I'm creating a web application for mobile devices that will be downloaded in one of the markets with a mini web server and run on any OS ( iOS , android , Windows8 , etc. ) .
I want an application to be as independent as possible of the OS. I only wanted to use HTML5
and JavaScript
.
The application allows a user to make a number of orders just by clicking buttons. Example : [List contacts ]
I need to click [List contacts ] and is sent a text message automatically to other mobile device with an android application that receives the request and sends the response via sms . The response has to be read by my web application . The application can be able to work without network / Wifi .
I've been searching and I only found ways to open the native application for sending sms.
I see that question, but I want to create my own way to send sms without dependencies of other applications.
Is there any way to make this submission automatically?
Or can I use/create some plugin to use on JavaScript to do that?
[EDIT] Can this might be a possibility? Can someone explain me?
I'm creating a web application for mobile devices that will be downloaded in one of the markets with a mini web server and run on any OS ( iOS , android , Windows8 , etc. ) .
I want an application to be as independent as possible of the OS. I only wanted to use HTML5
and JavaScript
.
The application allows a user to make a number of orders just by clicking buttons. Example : [List contacts ]
I need to click [List contacts ] and is sent a text message automatically to other mobile device with an android application that receives the request and sends the response via sms . The response has to be read by my web application . The application can be able to work without network / Wifi .
I've been searching and I only found ways to open the native application for sending sms.
I see that question, but I want to create my own way to send sms without dependencies of other applications.
Is there any way to make this submission automatically?
Or can I use/create some plugin to use on JavaScript to do that?
[EDIT] Can this might be a possibility? Can someone explain me?
Share Improve this question edited May 23, 2017 at 12:32 CommunityBot 11 silver badge asked Apr 10, 2014 at 9:52 Jorge B.Jorge B. 1,2132 gold badges18 silver badges38 bronze badges 9- no, you can't send a SMS, just pose it and the user have to click the send button. – jcesarmobile Commented Apr 15, 2014 at 10:25
- can i use/create some plugin to use in javascript to do that? – Jorge B. Commented Apr 15, 2014 at 11:03
- to pose an SMS? with an a tag <a href="sms://+3490322111?body=Interested%20in%20Product%20AA2"> More info for producto AA2</a>. I thin window.location = "sms://+3490322111?body=Interested%20in%20Product%20AA2" might work too – jcesarmobile Commented Apr 15, 2014 at 11:10
- No, some plugin who sends the sms, using native sms sender and use that plugin on JS. – Jorge B. Commented Apr 15, 2014 at 11:16
- 1 Then it's only possible on android using phonegap and a plugin, on iOS you can just pose the SMS and the user have to press the send button. – jcesarmobile Commented Apr 15, 2014 at 13:44
1 Answer
Reset to default 4I believe the essential information was already mentioned in the ments, but my 2c here anyway.
As already mented, with current modern mobile operating systems apps don't get unlimited access to SMS functionality. From the user point of view allowing this would be potentially quite a hazard, since SMS's usually cost money and user should be in control of such activity, instead of having a random app sending and receiving SMS's freely (without user knowing it). Android is a bit more flexible regarding this kind of functionality, but as mentioned, iOS and also Windows 8/Windows Phone 8 only allows you to integrate to the SMS sending application and for SMS reception, there's no proper way to get access to ining SMS's.
So, with a native container (such as PhoneGap) you could get one step forward with Android, but for other platforms the possibilities are limited to using the native SMS application. If you need to use SMS for some reason in the backend side, services such as Twilio are probably your best shot, but using SMS locally on the device is pretty much a no-go, unfortunately.