简体   繁体   English

使用分享扩展分享图片

[英]Share image using share extension

While sharing an image with a share extension, I am facing an issue.在使用共享扩展程序共享图像时,我遇到了一个问题。 I have done all the steps that enable the app group in both the extension and the container profile.我已经完成了在扩展和容器配置文件中启用应用程序组的所有步骤。 I followed these steps to implement sharing code in the extension.我按照这些步骤在扩展中实现共享代码。

The error I'm seeing is:我看到的错误是:

Unable to bootstrap_look_up port with name me.com.companyname.share.gsEvents: unknown error code (1102)

and also并且

Application me.com.appName is not handling a background URLSession but we still received a signal to deliver pending events

App can share information with its extensions using App Group.应用程序可以使用应用程序组与其扩展程序共享信息。 App Groups are the shared container which your app and extension can use to share information like User Session, Contacts and can also hold data which is being uploaded to server.应用程序组是您的应用程序和扩展程序可以用来共享用户会话、联系人等信息的共享容器,还可以保存正在上传到服务器的数据。

User Session information is required to extension to communicate with server on behalf of logged in user.扩展需要用户会话信息来代表登录用户与服务器通信。 You can share any kind of extra information using shared container (App Group).您可以使用共享容器(应用程序组)共享任何类型的额外信息。

http://muhammadzahidimran.com/2016/12/08/how-to-track-progress-of-an-upload-started-by-share-extension/ http://muhammadzahidimran.com/2016/12/08/how-to-track-progress-of-an-upload-started-by-share-extension/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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