Sending an SMS from mobile browser

2019-01-17 22:48发布

Is it possible for a mobile browser to send an SMS using the device's built-in capabilities? By that I mean, NOT using some online SMS services provider but actually making the mobile device send the SMS (same you would do using J2ME).

标签: browser sms
7条回答
淡お忘
2楼-- · 2019-01-17 23:38

Some versions of the Opera Mini browser provide a javascript interface for authoring SMS messages to be sent from the user's phone.

Also, some versions of Nokia's Symbian browser include a javascript interface with similar functionality.

There might be others, but these are the only two I've found documentation for so far.

查看更多
▲ chillily
3楼-- · 2019-01-17 23:39

It's a good thing that is not possible. It would be quite a security risk IMHO. I imagine spammers would be all over it.

查看更多
戒情不戒烟
4楼-- · 2019-01-17 23:40

Its not possible . You can call device functionality from browser . That is the way to go about it . Webkit lets you do it

查看更多
做自己的国王
5楼-- · 2019-01-17 23:44

Android and blackberry support "mailto:" and "tel:".

Android supports "sms:" (and maybe iPhone, I don't have one :))
good luck and please post your result.

查看更多
贼婆χ
6楼-- · 2019-01-17 23:49

There are lots of different mobile browsers out there, so I doubt that this is standardised. Safari/iPhone supports SMS URIs, which strikes me as a sensible approach to the problem and one that might be more widely supported than just the iPhone.

Based on the link (above) I found, and a comment from Zamel, I suspect this would work:

<a href="sms:+447787000000">SMS</a>

Although with a real phone number, and possibly escaping the + sign as %2B.

查看更多
趁早两清
7楼-- · 2019-01-17 23:49

I think a GSM modem is capable of acting as a SMS Gateway but you have to have the software installed on the modem to do this. You might also look into the Carrier Gateway Emails to SMS as another option. Example is AT&T number@txt.att.net

There are a couple of free services popping up these days like ZeepMobile that you might also want to look into.

What exactly are you trying to accomplish?

查看更多
登录 后发表回答