xaldarof / encrypted-shared-preferences

Perfect for developers prioritizing security, Encrypted Shared Preferences integrates effortlessly into your projects, offering peace of mind and enhancing data privacy. Safeguard your app's data with this essential encryption solution
Apache License 2.0
12 stars 2 forks source link

Is this work on Flutter WEB? #6

Closed khangpt closed 7 months ago

khangpt commented 7 months ago

I already integrated this into my flutter web app, but every time close the browser. Then open again, all values I saved before been gone! How can I accomplish this? Thanks for helping me

xaldarof commented 7 months ago

Hi, this package is a wrapper for shared_preferences. You can create a new issue in the original repository.

khangpt commented 7 months ago

After a couple of time reading for this issue, I found that the latest version of shared_preferences package supports for flutter web. It worked when we build & deploy to somewhere hosting. In my case (development mode), I tested like: stop the running session, then start the other running session, in this time, the new instance of local server was started, I think that why my saved local data gone.

I leave this thread here, for others reference: shared_preferences for flutter web

I appreciate for any feedback for me, thanks