web页面(HTML5)实现发送短信的功能
16lz
2021-01-26
web页面(HTML5)实现发送短信的功能,把短信app调出来,并预填上号码或短信内容
Android
<a href="sms:/* phone number here */ ?body=/* body text here */">Link</a>
例如:<a href="sms:10086?body=短信发送">Link</a>
ios8
<a href="sms:/* phone number here */ &body=/* body text here */">Link</a>
例如:<a href="sms:10086&body=短信发送">Link</a>
ios8以下
<a href="sms:/* phone number here */ ;body=/* body text here */">Link</a>
例如:<a href="sms:10086;body=短信发送">Link</a>
---从查到的资料来看ios7不支持sms调出短信,我自己也没有测到过。上面Android和ios 8经过测试是可行的。
Android
<a href="sms:/* phone number here */ ?body=/* body text here */">Link</a>
例如:<a href="sms:10086?body=短信发送">Link</a>
ios8
<a href="sms:/* phone number here */ &body=/* body text here */">Link</a>
例如:<a href="sms:10086&body=短信发送">Link</a>
ios8以下
<a href="sms:/* phone number here */ ;body=/* body text here */">Link</a>
例如:<a href="sms:10086;body=短信发送">Link</a>
---从查到的资料来看ios7不支持sms调出短信,我自己也没有测到过。上面Android和ios 8经过测试是可行的。
更多相关文章
- 【Android】短信管理代码
- Android发送短信解决字数限制问题
- 移动设备浏览器的缓存限制[转][Mobile Browser Cache Limits: An
- Android获取短信session
- android获取单个通讯录联系人信息并分享内容(短信邀请)
- Android(安卓)短信发送器的实现
- delphi xe5 android 开发实现手机打电话和发短信
- Android对话形式的列表
- android 之 Notification 实例