4

Is there a way to open Settings app from today's widget directly. If you need to open it from within the app.

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

I have tried using this variation from today's widget

[[self extensionContext] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString] completionHandler:nil];

but it gives following error

enter image description here

I found an indirect way to open it by first opening the app using URL Scheme and then opening the Setting App from within the app. However, this is not desirable. So, Is there a direct way to achieve this?

Thanks

3
  • 3
    Strange, it appears to be unsupported for now. Apr 7, 2015 at 20:43
  • Did you find a way to do this after all?
    – razvan
    Jan 22, 2018 at 12:22
  • I didn't check after that. I am not sure if there is any new API now to that. Most likely there isn't. Follow the way I did it as mentioned above. Create a URL Scheme on app and send the data to it and parse it there and open setting in your phone that way. Jan 23, 2018 at 4:09

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.