Redirect from wifi settings to the cordova app in ios platform


#1

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 .


#2

I changed your post to format your code or error message correctly. Please use the </> button above the post input field to format your code or error message or wrap it in ``` (“code fences”) manually. This will make sure your text is readable and if it recognizes the programming language it also automatically adds code syntax highlighting. Thanks.


#3

Do you know of any app that does this successfully?

(Are we talking about iOS or Android by the way?)


#4

No…i didn’t know.I need this functionality for ios.Is it possible ?


#5

can someone have reply the post ?


#6

If no other app on earth does this, it is probably not possible.
If you find one that does do this, tell us and we will try to figure out how it does it.


#7

ok.thanks for your reply