Hi guys…
I have succesfully opened the wifi settings from my app using com.phonegap.plugins.nativesettingsopener. Now i need to redirect from the settings to app once it is connected to any network. I have tried cordova-plugin-background-mode.
But once the wifi settings opened, then no events can’t be fired within the wifi settings.
i have tried like…
if(typeof cordova.plugins.settings != 'undefined'){
window.cordova.plugins.settings.open("wifi", function() {
$timeout(function(){
cordova.plugins.backgroundMode.wakeUp();
cordova.plugins.backgroundMode.unlock();
},2000);
});
}
Please help to redirect from wifi settings to app only it is connected to any network .