0

I am trying to open the app settings on iOS devices. I do not know how to properly translate the open url snippet to javascript.

I tried three approaches and none of them work:

application.ios.nativeApp.shared.open(URL(UIApplicationOpenSettingsURLString), nil);
application.ios.nativeApp.sharedApplication.openURL(NSURL.URLWithString(UIApplicationOpenSettingsURLString));
application.ios.nativeApp.shared.openURL(NSURL.URLWithString(UIApplicationOpenSettingsURLString));

1 Answer 1

1

Try,

UIApplication.sharedApplication.openURL(NSURL.URLWithString(UIApplicationOpenSettingsURLString));

Use tns-platform-declarations if you are using TypeScript for IntelliSense support with device apis.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.