Returns the cookie storage instance for the container associated with the specified app group identifier.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
The app group identifier.
By default, apps and associated app extensions will have different data containers. As a result, the value of the
shared property will refer to different persistent cookie stores when called by the app and by its extensions.You can use this method to create a persistent cookie storage available to all apps and extensions with access to the same app group.
Subsequent calls to the this method with the same identifier will return the same storage instance.