Making a call with Web Runtime Widgets
From Symbian Developer Community
Symbian/S60's Web Runtime has a rich set of javascript extensions called Platform Services: contacts, calendar, location, logging, media, messaging, etc. Nice, but how does one make a call? I mean, it is a phone after all. Turns out there is the well known tel URI protocol[1]. The syntax is simply tel:<number>. This can be used directly in an href or in javascript.
var url = "tel:+18661231234"; widget.openURL(url);
Here +18661231234 represents a generic phone number.
There is also an sms protocol. The syntax allows you to define both the number and seed it with a message for the user.
// The message consists of percent-encoded UTF-8 characters. // see http://tools.ietf.org/html/draft-wilde-sms-uri-12 var url = "sms:+18661231234?body=The%20Sky%20is%20so%20beautiful."; widget.openURL(url);
Comments
Sign in to comment…


