Is it possible to open my app preferences via “system.openURL(‘App-Prefs:…’)” to enable notifications and location?
Thanks
Is it possible to open my app preferences via “system.openURL(‘App-Prefs:…’)” to enable notifications and location?
Thanks
Hi @phpedinei,
From base Corona you cannot directly open the preferences app, but you may be able to do so using Corona Native.
Best regards,
Brent
Actually you can on iOS>=8:
system.openURL( "app-settings:" )
Will take the user to your apps settings to enable/disable access to location, notification, camera etc.
If the app didn’t ask for any permissions the general system settings will be shown instead.
And by the way. This doesn’t seem to be mentioned anywhere in the docs.
I think it should be added to the system.openURL docs and the “Permissions” part of the “Project Build Settings” docs.
Did not work here.
Should I pass the CFBundleIdentifier after “:”?
No you should simply call system.openURL( “app-settings:” )
What happens when you do that?
I just tested on device and it works for me.
Thanks!
Works fine!
Hi @phpedinei,
From base Corona you cannot directly open the preferences app, but you may be able to do so using Corona Native.
Best regards,
Brent
Actually you can on iOS>=8:
system.openURL( "app-settings:" )
Will take the user to your apps settings to enable/disable access to location, notification, camera etc.
If the app didn’t ask for any permissions the general system settings will be shown instead.
And by the way. This doesn’t seem to be mentioned anywhere in the docs.
I think it should be added to the system.openURL docs and the “Permissions” part of the “Project Build Settings” docs.
Did not work here.
Should I pass the CFBundleIdentifier after “:”?
No you should simply call system.openURL( “app-settings:” )
What happens when you do that?
I just tested on device and it works for me.
Thanks!
Works fine!