web页面(HTML5)实现发送短信的功能

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经过测试是可行的。

你可能感兴趣的:(ios,android,html5,sms)