0

My app setup is a basic new app with default viewController with the default classes for share extension on iOS 11.2.
The host AppDelegate class FinishedLaunching never gets called. Just shows the launch screen and closes the app.

The sample Xamarin app provided also has the same issue. Link to the sample app: Share Extension sample

Any idea whats going wrong?

moz ado
  • 490
  • 4
  • 17

1 Answers1

0

Do you want to open the app which you created with the share extension, when user clicks the share button to use this share extension? If so, this app should be called Containing App.

But unfortunately, there's no way to do this on iOS8.3+ except Today Extension. From this post we know that:

The intended approach for share extensions is that they handle all of the necessary work themselves.

Also from the Apple documentation about extension:

An extension’s UI should be simple, restrained, and focused on facilitating a single task.

Apple doesn't recommend us to open its containing app from extensions, actually it avoids that. If you want to retrieve data in containing app, you can set up an app group so that data can be shared between these two apps.

Ax1le
  • 6,563
  • 2
  • 14
  • 61
  • Not really, the Containing App won't run at all. But found that was the case only on simulators. Now all is working fine. Thanks – moz ado Mar 28 '18 at 11:59