简体   繁体   English

在iOS中使用不同App ID前缀的应用程序之间共享数据

[英]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.

相关问题 iOS之间的应用程序组数据共享 - App Groups Data Sharing Between Applications iOS 如果要共享的数据很大且应用程序可以有不同的应用程序ID前缀,那么两个iOS应用程序之间的最佳数据共享机制是什么? - What is the best data sharing mechanism between two iOS apps if the data to be shared is huge and the apps can have different app id prefixes? 在iOS App和Todays Extension之间共享数据 - Sharing Data Between iOS App and Todays Extension 在两个不同的应用程序之间共享数据库/文件 - Sharing Database/file between two different applications WatchOS 2.0在iOS App和WatchOS App之间共享数据 - WatchOS 2.0 Sharing Data between iOS App and WatchOS App 在iOS8中在App和Extension之间共享核心数据堆栈和数据 - Sharing a Core Data stack and data between App and Extension in iOS8 在具有不同团队ID的iOS应用之间私下共享数据 - Privately sharing data between iOS apps that have different team IDs 在同一iOS设备中的不同应用之间共享数据 - Sharing data between different apps in the same iOS device iOS 8小部件,向前和向后在应用程序组之间共享数据 - iOS 8 widget, sharing data between app groups forward and backward 通过 iOS 应用程序和框架之间的 memory 引用共享数据 - Sharing data by memory reference between iOS app and framework
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM