Share via


Working with watchOS App Groups in Xamarin

An App Group allows different applications (or an application and its extensions) to access a shared file storage location. App Groups can be used for data like:

Configure an App Group

The shared location is configured using an App Group, which is configured in the Certificates, Identifiers & Profiles section on iOS Dev Center. This value must also be referenced in each project's Entitlements.plist.

Provisioning

The app group will have an identifier, which is typically your Bundle ID with a group. prefix. For example, we could use the Bundle ID com.xamarin.WatchSettings and the app group group.com.xamarin.WatchSettings.

Use the Bundle ID com.xamarin.WatchSettings and the app group   group.com.xamarin.WatchSettings

Entitlements.plist

As well as configuring the provisioning profile, Enable App Groups in the Entitlements.plist and enter the ID you've chosen:

Configure the plist and enter the ID

Deployment

Ensure you configure the App Group correctly in your deployment provisioning.

For more information, please see the App Group Capabilities documentation.