Reputation: 949
We're using Application.Current.Properties to store settings data for our app.
When we release a new version of the app to the store (Apple App Store and Google Play), are these settings retained or cleared?
Upvotes: 1
Views: 779
Reputation: 949
I've just run a test by distributing two versions to HockeyApp - both for iOS and Android - and the values stored in Application.Current.Properties (note, not Settings from any settings plugin) are retained on installation of the updated version.
This is good news for us and our customer!
Upvotes: 4
Reputation: 9732
See this thread in the Xamarin Forums
No, all values in the name-value dictionary are serialized to disk every time when the application goes to sleep. They are read back when the application is loaded again.
The data of your app is - generally speaking - not cleared when you install an update (it is deleted when the app is uninstalled), cf. here, here and here. Hence App.Current.Properties
should be maintained when updating an app. But you can easily try it. Publish a beta on HockeyApp, TesFlight or whatever, update the app and see what happens.
Upvotes: 0