×
Namespaces

Variants
Actions
Revision as of 09:29, 14 June 2013 by hamishwillee (Talk | contribs)

SMS URI scheme in Nokia Asha web apps

From Nokia Developer Wiki
Jump to: navigation, search

This article explains how to use SMS URI Scheme in series 40 Web Apps

Article Metadata
Tested with
Devices(s): Nokia X3-02
Compatibility
Device(s): Series 40 devices supporting Nokia Asha Web Apps version 1.5
Article
Keywords: SMS
Created: isalento (03 Nov 2011)
Last edited: hamishwillee (14 Jun 2013)

Overview

Series 40 web apps version 1.5 brought support to SMS URI scheme. SMS URI scheme used in Series 40 web apps follows RFC 5724 specification. Clicking a SMS link in a web app will open the default SMS editor rather than sending message directly to recipient.

SMS URI scheme

SMS URI is easy to construct. Formal definition can be found in Section 2.2 of RFC 5724.

<a href="sms:+3581234567">One number, no body text</a>  
<a href="sms:+3581234567,+3582234567">Two numbers, no body text</a>
<a href="sms:+3581234567?body=hello%20world">One number with body text</a>
<a href="sms:+3581234567,+3582234567?body=hello%20world">Two numbers with body text</a>
<a href="sms:?body=hello%20world">Body text, no numbers</a>
<div onclick="mwl.loadURL('sms:+3581234567?body=hello%20world')">MWL: Number and body text</div>


Please note that Web App Simulator does not support SMS URI Scheme fully, thus use a real Series 40 device for testing.

Example Application

SMS Voting example: https://projects.developer.nokia.com/smsvotes40/

See Also
92 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×