Can Share extension invoke containing app?

In my iOS app I upload photo gallery images to my app's server to see same images on other devices using same login credentials.

For quickly uploading captured images from camera (or existing images in photos app), I want to add Share extension in my app.

Can I open my containing app from share extension using openUrl:schemeName or using some other way? Will Apple clear this app review?

How can I pass selected images to containing app from share extension, so that I could re-use images upload logic existed in containing app?

Replies

To address your concerns in roughly random order...


Hi,


Regarding your third approach, "Your app extension can launch your main app".

The openUrl method of NSExtensionContext always returns success as no in the completion block.

Is there any other way to launch main app from share extension?

I am facing the same issue. The extension does not seem to be able to openURL the main app. Is there a solution for this problem or is it still not possible?