Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Storage data persists even after delete AppData on Windows #136

Open
KentaIbayashi opened this issue Oct 31, 2023 · 4 comments
Open

Storage data persists even after delete AppData on Windows #136

KentaIbayashi opened this issue Oct 31, 2023 · 4 comments

Comments

@KentaIbayashi
Copy link

KentaIbayashi commented Oct 31, 2023

Where does GetStorage save data?
The app is Windows app on Microsoft Store and, and can't delete the app data even after reinstall the app.
I tried to delete the data saved by GetStorage manually but couldn't find the directory location.

@KentaIbayashi
Copy link
Author

KentaIbayashi commented Oct 31, 2023

I found the solution. It is in
C:\Users{user}\Documents returned by getApplicationDocumentsDirectory.
After deleting the files named with extension .bak and .gs, the storage data is also deleted.

But another issue here, it is better to save in one of these directory below, isn't it? Like shared preference behaves.
C:\Users{user}\AppData\Roaming{YourAppOrganization}{YourAppName}
C:\Users{user}\AppData\Local{YourAppOrganization}{YourAppName}

@jonataslaw
Copy link
Owner

I am thinking about change the desktop location. When I built this package another options were not available. But for this, I will have to create a migration data flow, to prevent the current users to lost their data.

@jonodav
Copy link

jonodav commented Jan 21, 2024

+1 for changing location. It's not very nice having the files dumped in the users documents folder.

@mhdjazmati
Copy link

mhdjazmati commented Mar 19, 2024

when i change the location and i passed it in path like this for example:
GetStorage(
'GetStorage',
getApplicationSupportDirectory()
),
);

i got permission denied in windows, it only work if i run the app as administrator
but other libs like Hive or Secure Storage it has no issue saving in same 'getApplicationSupportDirectory' without run as administrator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants