Sharing iCloud documents between applications

I have two applications that are currently in the App Store that use iCloud. They use different rights identifiers, but now I would like to have access to documents from the first application in the second application.

Is it possible to add the first ubiquity container identifier for the second application to access the first documents of the application without damaging the ubiquity container that is already installed for the second application?

Obviously, I should have had their common identifiers in the first place, but did not think about it when the applications were first sent.

+4
source share
1 answer

From the docs, it seems really possible to do what you want. See Configuring Generic Ubiquity Container for Multiple Applications in the iCloud Design Guide for details, in particular:

For example, let's say you provide a free and paid version of your application. You want users who are updated to retain access to their iCloud documents. Or maybe you provide two applications that interact and need access to each other's files. In both of these examples, you get the necessary access by specifying a common container for ubiquity, and then requesting access to it from each application.

The following section explains how to configure one of the application containers as shared:

On the first line of the list of Xcode iCloud Containers target editors, enter the package ID of your main iCloud-enabled application.

0
source

Source: https://habr.com/ru/post/1495758/


All Articles