Launching a phone call to a number
This code shows how launch a phone call to a specific number using Tizen Web API.
//config.xml
<tizen:privilege name="http://tizen.org/privilege/call"/>
//main.js
// replace mobile number with ‘0123456789’
var appControl = new tizen.ApplicationControl('http://tizen.org/appcontrol/operation/dial',
'tel:0123456789', null, null, null, null);
tizen.application.launchAppControl(appControl, null, function() {
console.log('launch application control succeed');
}, function(e) {
console.log('launch application control failed. reason: ' + e.message);
}, null);