3

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?

9
  • no, you can't send a SMS, just compose it and the user have to click the send button. Commented Apr 15, 2014 at 10:25
  • can i use/create some plugin to use in javascript to do that? Commented Apr 15, 2014 at 11:03
  • to compose 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 Commented Apr 15, 2014 at 11:10
  • No, some plugin who sends the sms, using native sms sender and use that plugin on JS. 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 compose the SMS and the user have to press the send button. Commented Apr 15, 2014 at 13:44

1 Answer 1

4

I believe the essential information was already mentioned in the comments, but my 2c here anyway.

As already commented, 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 incoming 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.

Sign up to request clarification or add additional context in comments.

1 Comment

Thank you for reply. I had the same response in SOPT but for my project I needed to send sms on all platforms.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.