I created a Today Extension
that is introduced in iOS 8 first time. To share data between Today extension
and it's container App
, I defined an app group
, and bind them to this group. (Actually I added an embedded framework also to re-use code in both side.)
Details of this method is described in Apple's document.
I created some core data model and store it as sqlite on group container. Then everything works as I thought.
However, when I uninstall container app, There are still shared container and it's content on my iPhone. I think when last member of app group is uninstalled, this container should have to be deleted automatically. In my case, members of app group are shipped with just a single app, So, uninstalling this app should have to clear shared container.
Am I wrong?
ps. I could not find a way to delete this shared container as an user. Only developer who has rights to access app-group can remove this container with programming.
Generally, as soon as the user uninstalls an application, application data is removed from the Android operating system. This data includes the app data stored in the internal storage of the device, typically /data/data/{package_name} and the application-specific directory on the external storage.
Remove and Delete are defined quite similarly, but the main difference between them is that delete means erase (i.e. rendered nonexistent or nonrecoverable), while remove denotes take away and set aside (but kept in existence).
In iOS8 beta 4, App group container is deleted automatically when the last app that is belongs to the group is uninstalled,
So, it was just a bug that is now fixed by Apple.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With