Search code examples
iosswift3notificationsshare-extension

iOS Share Extension notification


I'm developing an application that has a share extension target. The app allows photo upload to a server which makes some analysis on the photo. When the analysis is done, which may take few seconds, a notification (with a banner) appears to notify the user.

The share extension allows to send photos for analysis directly from the Photo app. But once the photo posted, the extension disappears and I cannot notify the user that the task is over.

Do you know if this is achievable or not? If yes, any hint?

Thanks a lot.


Solution

  • Finally, I managed to do it. But I needed to use a custom view instead of the initial SLComposeServiceViewController view. The code is the following :

    class ShareViewController: UIViewController {
    ...
    }
    

    Note that I have to provide the code to dismiss the view.