Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to open iOS app from within extension?

My app is registered for URL Schemes:

enter image description here

But I have no idea how to open that app, since I cannot use UIApplication.sharedApplication() in extension. Is it possible at all?

like image 378
Bartłomiej Semańczyk Avatar asked Sep 26 '22 07:09

Bartłomiej Semańczyk


1 Answers

Apple's documentation says:

A Today widget (and no other app extension type) can ask the system to open its containing app by calling the openURL:completionHandler: method of the NSExtensionContext class.

like image 104
Bartłomiej Semańczyk Avatar answered Oct 11 '22 15:10

Bartłomiej Semańczyk