My app dynamically generates manifest.json
for each user, so that there can be multiple homescreen shortcuts, each pointing to the user’s unique start_url
. However, in case of a server error (and other cases), I’d like to have a link that lets the user go back to the initial page for that PWA. And because of the way that the app is designed, I can’t use any information provided by the server (session, cookies, etc.) — this has to be done purely in Javascript inside the PWA itself.
It’s easy enough to do in iOS, since PWAs are isolated, and have their own sandboxed localstorage
. That way, I can save the initial URL into localstorage
, and then retrieve it when needed.
But on Android, PWAs share their space with each other and the browser, so I can’t find any unique way that I can identify each of the PWAs