In UWP, where should I save user data?

Viewed 449

I made an UWP app for Microsoft Store. However, user data automatically saved in the LocalState folder will be deleted every time the app is updated. I want the data to be retained after every updating, so I'm trying to suggest the users to save their data by themselves in the Document folder or somewhere to avoid their data deleted, but I don't want to bother them. Where should I save user data?

The roaming folder will be unable to use in future and I don't want to use Azure because of its fee.

1 Answers

The common approach is to store the data in some remote location, like for example in the cloud. You would typically use a service of some kind to request and save the data.

If you think Azure is to expensive, you'll have to find a cheaper storage solution. The principle is the same regardless of which storage provider you use.

As mentioned in the docs, roaming data is (or at least will be) deprecated. The recommended replacement is Azure App Service.

Related