by no_gravity · 6y ago · 0 comments
Not being able to reliably store data on the device means that PWAs have to send the users data over the internet and store it on an external server. I would think users rather do not like that.
I am only talking about installed PWAs here. Of course not every website should be able to avoid having its cookies deleted.
Installed PWAs is another question. I suspect users will be surprised if they clear their browsing data only to discover they have to login again to Twitter, for example.
I may raise this question to the Edge Chromium team. I'm certain it's been raised before, but with Microsoft making PWAs first-class on Windows[0], this becomes a more prominent issue.
[0]: https://www.windowscentral.com/heres-how-microsoft-making-ed...
The problem is the data. Imagine a text editor where all your text documents are gone after you cleared the data of a different app, the browser.
I wrote a fitness app as a PWA some time ago and its pretty annoying to download all the instruction videos again every time you clear your "browser data". Plus all infos about which exercises you did and when is gone for good of course.
One way to address that issue is the native file system access APIs[0] coming soon, available today in Chrome Canary and Edge Canary. There, you'd be able to save your documents to the user's file system, just like a native app would. Those files will be exempt from any browser data clearing.
> all infos about which exercises you did and when is gone for good of course.
Might be good to store that data on the server. I realize not all PWAs have a proper backend server, but that sounds like a good candidate.
[0]: https://bugs.chromium.org/p/chromium/issues/detail?id=853326
Great, so there is light at the end of the tunnel!
> store that data on the server
Well, we talked about that already:
Come on, stop giving people false hope, that API is like 3rd incarnation of the same thing by Google, always shot down by Mozilla and Apple. Even today if you restrict yourself to Chrome your PWA can use the older version of the same thing, but what's the point if that works only in Chrome?
What could possibly go wrong with that?