如何在短信中配置可点击的链接?
许多移动操作系统(例如 Android 和 iOS)会自动超链接 SMS 中包含的 URL 和电话号码。此行为是由移动运营商、操作系统还是设备管理的?
我正在设计一个应用程序,要求用户能够通过 SMS 中的超链接访问 WAP 站点。不幸的是,该网站必须可供智能手机和功能手机访问。
任何有关一般标准或市场统计数据的信息都很棒!
Many mobile operating systems (such as Android and iOS) automatically hyperlink URLs and Phone Numbers included in an SMS. Is this behavior managed by the mobile carrier, the OS, or the Device?
I'm designing an application that requires users be able to access a WAP site via a hyperlink in an SMS. Unfortunately, this site has to be accessible to both smartphones and feature phones.
Any information on general standards or in-market statistics would be great!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
在 Android 上,它由编写 SMS 客户端应用程序的人“管理”。那可以是任何人。任何称职的 SMS 客户端都应该使 URL 可点击,但这并不能保证。
On Android, it is "managed" by whoever wrote the SMS client app. That could be anyone. Any SMS client worth its salt should be making URLs clickable, but there is no guarantee.
也许您想检查 WAP PUSH,它使 URL 在所有手机中都可点击(Iphone O 除外)。查看本指南,了解如何格式化 WAP PUSH http:// nexmo.com/documentation/how-to/send-a-wap-push-message/
Maybe you want to check WAP PUSH, which make URL clickable in all phones (expect the Iphone O think). Check this guide on how to format a WAP PUSH http://nexmo.com/documentation/how-to/send-a-wap-push-message/
这完全由应用程序决定。事实上,其他应用程序(例如浏览器等)对电话号码、地址等执行相同的操作。只需确保以看起来像链接或其他任何形式的方式格式化文本即可。例如
电话号码:(xxx) xxx-xxx 或 xxxxxxxxx 或 xxx-xxx-xxxx 等。
超链接: http://xxxxxx.xxx
(顺便说一句,SO 也这样做......我从未插入过链接;-) )
ETC。
It's entirely dictated by the application. In fact other applications such as the browser, etc perform the same operation on telephone numbers, addresses, etc. Just make sure you format your text in a manner that looks like a link or whatever it is. For example
Phone number: (xxx) xxx-xxx or xxxxxxxxx or xxx-xxx-xxxx, etc.
Hyperlink: http://xxxxxx.xxx
(BTW SO does it as well...I never inserted the link ;-) )
etc.