SMS URI scheme in Nokia Asha web apps
This article explains how to use SMS URI Scheme in series 40 Web Apps
Article Metadata
Tested with
SDK: Nokia Web Tools 1.5
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
- TEL URI scheme - FAQ: Can I call or, send SMS or email


Contents
Girishpadia -
Is <a href="call:+3581234567">Call me</a> also supporeted to call any number? I ask this because somewhere I have used this, now dont remember it :)girishpadia 12:47, 3 November 2011 (EET)
Isalento - TEL URI scheme
Hi, Yes, but instead of "call" use "tel" <a href="tel:+3581234567p123">Dial</a> Series 40 web apps - FAQ#Can I call, or send sms or email?
isalento 13:12, 3 November 2011 (EET)isalento 13:12, 3 November 2011 (EET)
Kuroidoruido -
is-it possible to send a sms in a a web apps without view the sms manager of the phone ?
I ask that because I have test to send me a sms with a web apps but i had to confirm the sms after, like i have write my message with the sms manager by default.kuroidoruido 23:20, 27 November 2011 (EET)
Hamishwillee - Kuroidoruido - I don't think so
Hi Kuroidoruido
I don't think so. You will always as far as I know have to go to the SMS manager to actually send the message. Note however that you can populate the message body using the format of the URL, so you don't have to compose it in the SMS editor.
Regards
Hamishhamishwillee 05:52, 29 November 2011 (EET)
Basker16 - No gateway replay in s40 device
hi,
I tried above code for sending sms(using s40 device in webapp),but am getting error like "No gateway repley".
can u help regards sending sms using s40 wepapp.Wheather we need to set any settings in S40 phone??.basker16 12:10, 15 March 2012 (EET)
Pramod pal - No Gateway reply
Hi.. I tried the code given below to send SMS using S40 Device Webapp, But i am getting error "NO Gateway Reply" in my device. is any setting required for this.? code is: "<a href="sms:+35801234567?body=hello%20world">SMS</a>" please reply me..if u r having any solution...
Isalento - Dibo thread
Hi Basker and Pramod. Let's continue discussion in this thread: http://www.developer.nokia.com/Community/Discussion/showthread.php?234078-Help-Please
-Ilkkaisalento 13:14, 19 March 2012 (EET)