Languages

Menu
Sites
Language
wifi setting app control not working

Hello,

I'm trying to launch wifi settings from my app and I'm following the documentation. I have all the correct settings added to config.xml. Here is the code

console.log("Launching wifi setting");
let ac = new tizen.ApplicationControl('http://tizen.org/appcontrol/operation/setting/wifi');
tizen.application.launchAppControl(ac, null, function() {
                console.log('launch application control succeed');
     }, function(e)  {
                console.log('launch application control failed. reason: ' + e.message);
}, null);

but the error callback gets called and throws "No matched application found." What is interesting is that nfc and general settings work just fine, but not wifi. Where is the problem?

-J

Edited by: Jirka Prazak on 11 Nov, 2018

Responses

2 Replies
André Reus

Hi, You didn't mention the device here.... FYI, The Wi-Fi settings application control is supported in mobile applications only.

It is declared here, 

https://developer.tizen.org/development/guides/web-application/application-management/application-information-and-controls/application-controls/common-application-controls#settings_wifi

 

André Reus

Hi, if you are using Gear Watch...just launch this package id "com.samsung.wifi

function successCB(){
        console.log('application launched successfully');
}

function errorCB(){
        console.log('application launching failed');
}

tizen.application.launch('com.samsung.wifi', successCB, errorCB);


you need to add the privilege

<tizen:privilege name="http://tizen.org/privilege/application.launch"/>