Sms link script for standard mobiles and iphone
The XtGem "click to sms" block just adds a preset phone number and no text in the body of the sms message
The problem with sms: urls is there are 3 different methods to add body text
- ?body= ...
for android and most older mobiles
Then just because Apple want to be different
- iOS 5 may not work at all
- ;body=...
for iOS 6 and 7
- &body=...
for iOS 8
Some old mobiles do want the body data url encoded and some do not
Also some will not work without a number being declared so I have placed a 0 in the number field
Example code
Example output