Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

SMS URI scheme in Nokia Asha web apps

From 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: kiran10182 (09 Dec 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: Smsvotes40.zip

See Also
This page was last modified on 9 December 2013, at 19:53.
378 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.

×