从 WAP 页面发送短信
这个问题与从 WAP 页面中的链接发送短信有关吗?
我曾经使用过短信:它适用于索尼爱立信、诺基亚和其他此类“传统”设备。标记的一个例子是:
<a href="sms:0123456789?body=test%20message">send</a>
我知道iPhone不允许你指定body。如果正文标签存在,则设备将关闭浏览器并打开 SMS 应用程序,但不会引导用户创建消息。因此,以下内容实际上不起作用;
<a href="sms:0123456789?body=test%20message">send</a>
然而,这部分地做到了......因为它将用户带到编辑器并选择收件人。
<a href="sms:0123456789">send</a>
我对 Android 的测试(HTC 希望)导致消息编辑器崩溃(使用上面的示例)。我已成功使消息编辑器打开,但未能使用以下方法传递任何详细信息(收件人或消息正文):
<a href="sms://0123456789">send</a>
请注意,根据诺基亚规格,:// 是不正确的。还有人取得过更多成功吗?
抱歉,如果这有点模糊,这可能更多的是讨论而不是问题。
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-up 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论