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