Hi all,
I’ve read tons of articles but just can’t get a popup prompt to install my app as a PWA! I’m not terribly technical so might be misunderstanding where something needs to be pasted in Bubble. I’m sure I’m close but just don’t know where I’ve gone wrong - any help would be greatly appreciated! Thanks!!
I read here that I need the below:
In Chrome, your Progressive Web App must meet the following criteria before it will fire the beforeinstallprompt
event and show the in-browser install promotion:
- The web app is not already installed
- Meets a user engagement heuristic
- Be served over HTTPS
- Includes a Web App Manifest that includes:
-
short_name
orname
-
icons
- must include a 192px and a 512px icon start_url
-
display
- must be one offullscreen
,standalone
, orminimal-ui
- Note:
prefer_related_applications
must not be present, or befalse
-
- Registers a service worker with a functional
fetch
handler
My manifest is valid
I think my sw.js is setup correctly. I had it blank but then read I needed the ‘fetch’ handler in there?
Chrome registers the manifest and sw
Do I need to add this Javascript when the page loads?
And then this Java when the user clicks something to show they’re engaged?