I am developing a Today's Extension of an app. I am having some problems regarding App Groups that are used as shared containers
between extension and containing app.
Where is the App Group data stored?
How to see what data is stored in the App Group?
Shared Containers is simply a UserDefault dictionary that is shared between Extensions in an App. To store data in the container Init your container using the
suiteName
UserDefault:TheN to set a value, in this case a
String
:And to retrieve the information (from either the Extension or App) use:
This explains how to to print the contents of the UserDefaults: Easy way to see saved NSUserDefaults?