We are trying to create a hyperlink in HTML page which should open predefined SMS - when user taps this link on our page, SMS app should open up with predefined number and body. We were able to successufully set the number, but we are unable to set body of this text message. Is it possible?
The link we are so far trying is :
<a href="sms:123456789?body=sometext">sms link</a>
Thanks a lot for help!
No, it is not possible.
The sms scheme is used to launch the Messages app. The format for URLs of this type is “sms:”, where is an optional parameter that specifies the target phone number of the SMS message. This parameter can contain the digits 0 through 9 and the plus (+), hyphen (-), and period (.) characters. The URL string must not include any message text or other information.
Reference : iPhoneURLScheme SMS
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With