5

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?

Bartłomiej Semańczyk
  • 59,234
  • 49
  • 233
  • 358
  • Can you elaborate a bit on your problem? I don't get the point. Once your URL schema is registered, your app can be opened from any other app by opening a URL following that very schema. – Hermann Klecker Nov 04 '15 at 13:21
  • The point is that I need to open my container app from within EXTENSION, not from within any other app. The second point is that it is forbidden to use `UIApplication.sharedApplication().openUrl()` in extension`. Is there any other way how to do this? – Bartłomiej Semańczyk Nov 04 '15 at 13:24

1 Answers1

4

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.

Bartłomiej Semańczyk
  • 59,234
  • 49
  • 233
  • 358