Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When the app is deleted what happens to the values stored in NSUserDefaults?

I have a little question regarding NSUserDefaults. When the application is deleted, what happens to the values stored in the NSUserDefaults? Do they get deleted as well?

When I remove a app and reinstall it from the app store the previous NSUserDefaults values are loaded?

like image 560
user3568907 Avatar asked Apr 24 '14 12:04

user3568907


People also ask

What happens to your data when you delete an app?

Even if a message appears to warn us that deleting the app will also delete the data, this usually only means that the data will be deleted from the device itself; it still exists on the developer’s server.

Is the app data stored in the device or iCloud?

There are some apps which let users choose whether the app data is stored in the device itself or into the iCloud. Just like the one you've mention, say 'SoundHound'. Let's say you choose to save the app data into the cloud, and you've used the app for a while (created some settings and so on).

Should you use an app or keep control of your data?

This will usually give a basic outline of their data sharing policies, but you may need to dig deeper with some thorough search engine exploration. In the end, it may be making the tough decision between using an app or easily retaining control of your data.

What happens to an app when an employee leaves the organisation?

When an employee leaves an organisation, it's important that other employees can still access the apps that were created and owned by the employee. This post walks through the life cycle of an app, starting from when an employee creates an app to the time that the employee leaves the organisation. We also look at how to change the owner of an app.


1 Answers

When an app is deleted from the device all local data associated with the app will be deleted too. This includes NSUserDefaults. However any data stored at an online service won't. For example, iCloud. The app will just fetch the data again if requested to do so by the user / developer.

Edit

As per mAu's comment below - this includes keychain data, which won't be deleted either.

like image 84
Robert J. Clegg Avatar answered Sep 18 '22 06:09

Robert J. Clegg