Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Uninstalling app not delete app group data .Do I have to remove app group container and it's content manually?

Tags:

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.

like image 332
jeeeyul Avatar asked Jun 11 '14 08:06

jeeeyul


People also ask

Does uninstalling app remove app data?

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.

What is the difference between removing and deleting an app?

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).


1 Answers

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.

like image 124
jeeeyul Avatar answered Oct 07 '22 16:10

jeeeyul