Page 1 of 1

Navigate to IOS settings page from within app

Posted: Sat Apr 25, 2015 12:17 pm
by Paul Medawar

Hi, I've added a button within my app which when the user presses, i'd like them to be navigated to the IOS settings page.

I have found the following guidance on stack overflow

------

You can open settings app programmatically in iOS8, but not in earlier versions of iOS.

In Swift:

Code: Select all

UIApplication.sharedApplication().openURL(NSURL(string:UIApplicationOpenSettingsURLString)!); 

In Objective-C

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

-------

I've tried to link to it by adding the following javascript to the button click

window.open('UIApplicationOpenSettingsURLString');

which doesn't work.

How should I be adapting this code to open the IOS settings page in Appery?

kind regards

Paul


Navigate to IOS settings page from within app

Posted: Sat Apr 25, 2015 1:34 pm
by Illya Stepanov

Hi Paul -

This is a native platform language code, in Appery.io you are creating and working with Web app (HTML/JS/CSS) which can be wrapped with Cordova/PhoneGap and exported as a native package.

I'm not sure if this is possible in Cordova/PhoneGap app, you can look for solutions in the internet.


Navigate to IOS settings page from within app

Posted: Sat Apr 25, 2015 2:30 pm
by Bruce Stuart

I presume you are trying this in Xcode via the simulator....what's the error being reported in the console ?


Navigate to IOS settings page from within app

Posted: Sat Apr 25, 2015 5:15 pm
by Paul Medawar

Hi Bruce,

im not that advanced. I was hoping that there was a url scheme like the following I use for accessing webpages in safari, or a Facebook page within their app

window.open('http://0-gravity.ae', '_system');

window.open('fb://profile/537570322968254');

to take the user directly to their IOS settings page.