ARTICLE AD BOX
I have a Progressive Web Application (PWA) with Trusted Web Activities (TWA) published in Android, built with bubblewrap. For a few years, it has relied on PWA service workers and indexedDB to work offline, so users can use it without registering.
IndexedDB seems to be unreliable at storing data locally for long periods of time, even when setting storage persistence. Due to this, and other reasons, I'm planning on migrating to a WebView based approach, potentially using CapacitorJS, which can store data natively in Android.
Whilst most of this migration is quite straightforward and seamless, I'm completely at odds as to how to migrate the data in IndexedDB. For logged-in users this is not a problem, as data is associated online to their accounts, but for offline users, WebView cannot access the data, as the web application is now opening in a different browser than for TWAs. The PWA version of the application doesn't seem to have any way to reliably store data that can be read by the WebView version, so even something like a online sync + token is not viable without users actively login-in. Is there a way to migrate this data without forcing users to create an online account?
