开发者

send SMS from WAP page

This question is related to sending an SMS from a link in a WAP page?

Historically I have used sms: which has worked on SonyEricsson, Nokia and other such 'legacy' devices. An example of the mark-开发者_如何学JAVAup would be;

<a href="sms:0123456789?body=test%20message">send</a>

I am aware that i-phone does not allow you to specify the body. If the body tag is present then the device closes the browser and opens the SMS application but does not go as far as taking the user to message creation. As such the following does not really work;

<a href="sms:0123456789?body=test%20message">send</a>

however, this partially does... in that it takes the user to the editor and selects the recipient.

<a href="sms:0123456789">send</a>

My tests with Android (HTC desire) cause the message editor to crash (with the above examples). I have managed to get the message editor to open successfully but not managed to pass any details (recipient or message body) using;

<a href="sms://0123456789">send</a>

Note the :// which is not correct according to the Nokia specs. Has anyone had any more success?

Sorry if this is a bit hazy, its probably more of a discussion than a question.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜