So this is weird behavior, not even sure it's next-pwa issue. but when I do Clear browsing data for the browser and clear site data from dev tools/Applications, the pwa breaks, feels like beforeinstallprompt is not being fired anymore. because my custom install banner is not appearing.
But everything is fine after the first reload.
Versions
next-pwa: 5.6.0 (but has been happening with previous versions)
next: 12.2.5
How To Reproduce
I do not have live example, but basically:
clear browsing data
clear site data from dev tools -> Applications
load the app.
See the beforeinstallprompt not firing.
Expected Behaviors
my custom banner should show up
Sorry for the lame bug report. I really dont know how to debug? could this be the service worker not registering on cleared cache tabs?
I'm not sure, maybe I'm dealing with second bullet point scenario.
Meets a user engagement heuristic (currently, the user has interacted with the domain for at least 30 seconds).
Summary
So this is weird behavior, not even sure it's
next-pwa
issue. but when I doClear browsing data
for the browser andclear site data
from dev tools/Applications, the pwa breaks, feels likebeforeinstallprompt
is not being fired anymore. because my custom install banner is not appearing. But everything is fine after the first reload.Versions
next-pwa
: 5.6.0 (but has been happening with previous versions)next
: 12.2.5How To Reproduce
I do not have live example, but basically:
Expected Behaviors
my custom banner should show up
Sorry for the lame bug report. I really dont know how to debug? could this be the service worker not registering on cleared cache tabs?
Any help would be appreciated.