Skip to content

1. App Group

vodaion edited this page Mar 18, 2019 · 6 revisions

Info

You do have the support of accessing and communicate between applications if the applications are in the same App Group.

Each application when is running in a separate process, even if the applications are part of the same App Group, they do not access each other's directories, but they have access to the Shared Container that has a Sandbox-like directory structure, that looks like in the image below: alt tag

How to create an App Group

First of all, you need to create an App Group for your application. Go to Apple Developer Member Center and register App Group. Fill the description and identifier and follow the instructions.

alt tag alt tag alt tag

After that when you will create an identifier for an application or an extension, don’t forget to enable the service App Groups.

alt tag

Then go to the application or the extension and edit services. It’s really simple, see the next screenshots:

alt tag alt tag alt tag alt tag alt tag alt tag alt tag alt tag

It’s all settings, now open the Xcode and let’s go to write code. In the Xcode for the each target enable App Groups in target settings.

alt tag alt tag

And please, perform this procedure for all applications or extensions of the App Group.