Activate wifi dialogue if there is no internet connection

Hi,

I know how to check for internet connection using network.request(), but if there isn’t one, all I am doing right now is just showing a popup with an error message.

Is there a way for enabling the user to activate the internet connection and pick a wifi network through a popup? [import]uid: 117153 topic_id: 27154 reply_id: 327154[/import]

Hey misfisk, no, currently you cannot do that with a popup. [import]uid: 52491 topic_id: 27154 reply_id: 110243[/import]

Hm, so the user will have to leave the app? Is there at least a way of directing them to the control panel with system.openUrl or something like that? [import]uid: 117153 topic_id: 27154 reply_id: 110282[/import]

That is a good question and I am not certain on the answer - I will check with a colleague today and let you know if it seems this may be possible :slight_smile: [import]uid: 52491 topic_id: 27154 reply_id: 110443[/import]

Thanks a lot :slight_smile: [import]uid: 117153 topic_id: 27154 reply_id: 110579[/import]

No, I don’t think this is possible. According to StackOverflow, there was a workaround to use openURL to open the System Preferences, but that stopped working in iOS 5.1.

[import]uid: 7563 topic_id: 27154 reply_id: 110762[/import]