The sms
scheme is used to launch the Text application. The format for URLs of this type is “sms:
<phone>”, where <phone> 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.
The following examples show strings formatted for Safari and for native applications.
HTML links:
<a href="sms:">Launch Text Application</a> |
<a href="sms:1-408-555-1212">New SMS Message</a> |
Native application URL strings:
sms: |
sms:1-408-555-1212 |
iOS Note: If the Text application is not installed on the device, clicking an sms
URL displays an appropriate warning message to the user.
Last updated: 2009-06-17