open device settings

Recently I used sample code for sending email, one thing I noticed is that when the user has not entered email in settings, nothing happens. So is there any way we can redirect the user to settings option in device?

@chinmay5,

I believe you are referring to a call like this:

native.showPopup("mail", options)         

If so, showPopup() returns a boolean value indicating whether it could (true) or could not (false) open the client dialog.

In the case of ‘false’ I would suggest something like this:

native.showAlert( "User Malfunction - Derp", "Hey buddy!  Your e-mail isn't configured.  Go fix it if you want this to work... Sheesh!", { "OK" } ) 

Of course I’d probably made the message a little nicer.  :smiley:

@roaminggamer

Thanks for your reply. I am already using this method but what I am wondering is how can we redirect the user to device settings of the device.

@chinmay5,

I believe you are referring to a call like this:

native.showPopup("mail", options)         

If so, showPopup() returns a boolean value indicating whether it could (true) or could not (false) open the client dialog.

In the case of ‘false’ I would suggest something like this:

native.showAlert( "User Malfunction - Derp", "Hey buddy!  Your e-mail isn't configured.  Go fix it if you want this to work... Sheesh!", { "OK" } ) 

Of course I’d probably made the message a little nicer.  :smiley:

@roaminggamer

Thanks for your reply. I am already using this method but what I am wondering is how can we redirect the user to device settings of the device.

Hi guys. Wondering whether this is possible where device settings (on Android) can be opened ? I know it can be done using intents.

Thanks

Hi guys. Wondering whether this is possible where device settings (on Android) can be opened ? I know it can be done using intents.

Thanks

How do you open the settings app on iOS? I’ve tried adding “prefs” to the urlscheme in build.settings and then system.openURL(“prefs:root=Settings”)

After research and reading forums, it looks like this worked at one time, is this an iOS9 issue? And if so, will there be support for this in the future?

How do you open the settings app on iOS? I’ve tried adding “prefs” to the urlscheme in build.settings and then system.openURL(“prefs:root=Settings”)

After research and reading forums, it looks like this worked at one time, is this an iOS9 issue? And if so, will there be support for this in the future?