[英]Sharing Data Between Applications with different App ID Prefix in iOS
I've done some research on how to share data between apps. 我已经研究了如何在应用之间共享数据。 The most appealing approach is to use App Groups but that requires same app ID prefix. 最吸引人的方法是使用应用程序组,但这需要相同的应用程序ID前缀。 I know there are some similar questions on Stack Overflow but I couldn't find a suitable solution for my case. 我知道Stack Overflow也有类似的问题,但是我找不到适合我的情况的解决方案。
I am building a framework which provides image and video. 我正在建立一个提供图像和视频的框架。 My goal is to create a shared cache mechanism so different apps on the same device that use my framework don't have to cache the same content twice. 我的目标是创建一个共享的缓存机制,这样在使用我的框架的同一设备上的不同应用不必将相同的内容缓存两次。 Ideally the cache can be used by different apps developed by different developers. 理想情况下,缓存可以由不同开发人员开发的不同应用程序使用。 Is this even possible? 这有可能吗?
Similiar questions: 类似问题:
Sharing data in between apps in IOS 在iOS中的应用之间共享数据
Sharing File Data Between Applications in Swift/iOS 在Swift / iOS中的应用程序之间共享文件数据
No, it's not possible. 不,不可能。 Since the two apps are not part of the same app group they can not share any resources. 由于这两个应用程序不是同一应用程序组的一部分,因此它们无法共享任何资源。 The use of a common framework is irrelevant. 通用框架的使用无关紧要。 The two apps will each have their own sandbox with no common area for the framework code to share. 这两个应用程序将各自拥有自己的沙箱,没有共享框架代码的公共区域。
The end result is each app using the framework will end up with its own copy of the cache. 最终结果是,使用该框架的每个应用程序最终都会拥有自己的缓存副本。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.