SMS URL on Android

前端 未结 8 1842
我寻月下人不归
我寻月下人不归 2020-11-30 07:22

I was wanting to know if Android had a similar feature to the iPhone in that you can use an HTML A tag to send an SMS by setting the HREF attribute to the phone

相关标签:
8条回答
  • 2020-11-30 08:16

    href="sms:+xxx" works on my stock HTC Desire Android 2.2 browser and the Sense SMS app, but sms:+xxx?body= doesn't - error: invalid recipient(s). I was only really interested in setting the body - anyone seen / solved this problem?

    My test page is here: http://jsbin.com/itama4/15

    0 讨论(0)
  • 2020-11-30 08:19

    If you wants to allow in Android and IOS, Following trick worked for me in both devices.

    Without adding number :

    sms:?&body<Your message goes here>
    
    0 讨论(0)
提交回复
热议问题