Namespaces
Variants
Actions

SMS URI scheme in Nokia Asha web apps

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
Platform(s): Series 40
Device(s): Series 40 devices supporting Nokia Asha Web Apps version 1.5

Article
Keywords: SMS
Created: isalento (03 Nov 2011)
Last edited: hamishwillee (09 May 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
This page was last modified on 9 May 2013, at 13:39.
370 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved