Does any one know how to launch the parent app from the app extension\'s view controller?
I just want to launch the main app from its app extension.
Here is another way to do it:
Build Settings
. Set Require Only App-Extension Safe API
to NO
.UIApplication.shared.openURL(URL(string:"openPdf://")!)
as you normally would do it outside extension to open urls.Note, that you'll get 'openURL' was deprecated in iOS 10.0 warning. So this looks like it is not guaranteed to work in future.
Consider using local Notifications to wake up host app instead of this.