animal_chin animal_chin - 3 years ago 218
HTML Question

iOS SMS scheme in HTML hyperlink with body

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!

Answer Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download