Menu
Sites
Language

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);

Responses

2 Replies
Aamir Ali

very nice. 

 

can you help on this, too?
https://developer.tizen.org/forums/web-application-development/device-administrative-rights-on-web-tv-application

 

Thanks in advance.

An Nguyen

Nice solution

Thank you for sharing

------------------------------

Name: MiAn

Website: GsmNeo FRP

Whatsapp: +9156323254