Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS SMS scheme in HTML hyperlink with body

Tags:

html

href

ios

sms

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!

like image 279
animal_chin Avatar asked Apr 23 '13 09:04

animal_chin


1 Answers

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

like image 60
Midhun MP Avatar answered Sep 28 '22 03:09

Midhun MP