简体   繁体   中英

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM