Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Opening SMS app from feature phone's mobile browser?

Via HTML, is it possible to access/open the SMS app from a mobile browser?

It's okay if the SMS is routed through the user's own mobile carrier (like normally), and is billed to the said user as well. I don't want to create my own SMS gateway to provide a platform for sending such messages. I'm only interested in calling the SMS functionality from the mobile browser.

I've seen examples of: <a href="sms://+14035550185">Send an SMS</a> But I'm unsure how extensively they work. I need a robust solution that works across an expansive range of mobile browsers (esp. old-school feature phones). I don't want to have to use HTML5 or Javascript. Most old-school feature phone browsers I'm targeting aren't Javascript-enabled - so it's a bottleneck.

like image 259
Hassan Baig Avatar asked Jul 10 '15 13:07

Hassan Baig


People also ask

How do I open the SMS app?

Open Settings . Click Apps. In the list of apps, click Messages. SMS.

How do I open my Messages app on Android?

From the Home screen, tap the Apps icon (in the QuickTap bar) > the Apps tab (if necessary) > Tools folder > Messaging .

How do I use HTML for SMS?

Making an SMS link is very easy in HTML. Here, we will see how to make the SMS link on a webpage. Approach: Using <a> href attribute: Enter the phone number in place of the URL and add sms: before it to make an SMS link. Add the text between the tags that will appear as the clickable link.


2 Answers

If you want to add a pre-fabricated message to the sms, Android and iOS devices require slightly different syntax. Note the '&' vs '?' below.

iOS:

<a href="sms:1234&body=hi">Send an SMS</a>

Android:

<a href="sms:1234?body=hi">Send an SMS</a>
like image 146
Alyssa Avatar answered Sep 29 '22 22:09

Alyssa


I added the following in my template and got the desired results: <a href="sms:+1234?body={{ link.description }}" style="color:blue;background-color:#FFA500">SMS</a>

Don't mind the Django tag: {{ link.description }}

The generic usage for anyone is <a href="sms:1234567?body=hello world">Send SMS</a>

like image 30
Hassan Baig Avatar answered Sep 29 '22 22:09

Hassan Baig