Link to Native settings app from Ionic/Cordova app?


#1

If a user does not have an internet connection, using ngCorodva network plugin support, I would like to display a dialog with a ‘Settings’ option to verify that they have celular data, or are on wifi.

When a user clicks ‘Settings’ I want to open up the Settings app. I havent found any good information on google search for this, anyone done this before?


#2

@djett, did you ever find out? I’m quite stuck on this one myself!


#3

I decided not to go this route, but i’m not sure if you can via javascript right now


#4

Does anyone discover something on this??


#6

It changed from iOS5, I don’t think existed in iOS7 but is now in iOS8.

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]];

This is the objective C to open the settings, however you will have to either write your own plugin or use something like MMWormhole to handle this.

Cheers


#7

For anyone still interested try this plugin https://github.com/dpa99c/cordova-diagnostic-plugin.
It works on both android and ios