Paul Medawar
Posts: 0
Joined: Thu Apr 03, 2014 10:55 am

Navigate to IOS settings page from within app

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

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Navigate to IOS settings page from within app

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.

Bruce Stuart
Posts: 0
Joined: Fri Oct 24, 2014 4:42 am

Navigate to IOS settings page from within app

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

Paul Medawar
Posts: 0
Joined: Thu Apr 03, 2014 10:55 am

Navigate to IOS settings page from within app

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.

Return to “Issues”