3

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.

Fish
  • 45
  • 6
  • The common approach is to store the data in some remote location, like for example in the cloud. If you think Azure is to expensive, you'll have to find a cheaper storage solution. – mm8 Jun 24 '21 at 13:37
  • [Roaming](https://learn.microsoft.com/en-us/windows/uwp/design/app-settings/store-and-retrieve-app-data#roaming-data) ? – Sinatr Jun 24 '21 at 13:40
  • 1
    Something is strange in your issue... I develop and maintain many apps on Windows Store (privates and publics) and the data stored in LocalStorage aren't deleted when an update is applied. – Vincent Menant Jun 25 '21 at 10:25

1 Answers1

-1

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.

mm8
  • 163,881
  • 10
  • 57
  • 88
  • It mentioned PSR is depricated. Are you sure if roaming (I understand it as [RoamingState](https://stackoverflow.com/a/15099365/1997232)) and PSR is the same thing? – Sinatr Jun 24 '21 at 13:46
  • 1
    Publishing private data to someone's else server is not always a good idea. Specially since it requires internet access. A local file is a must for many reasons. – Alejandro Jun 24 '21 at 13:49
  • PCR is what backs the roaming functionality for UWP apps. The main drawback of storing data locally is mentioned in the question. – mm8 Jun 24 '21 at 13:50