Paul Kinlan paul.kinlan.me

Use `onappinstalled` to know when your PWA gets installed  ↦

Paul Kinlan, developer advocate for Chrome and the open web at Google writes:

Chrome implemented window.onappinstalled event. It’s triggered when a user installs a progressive web app via the Add to Homescreen API or now more importantly via the manual method of Add to Homescreen.

This is a very useful addition because it allows you to see engagement on the prompt vs people who use the system banners or menu buttons to install a progressive web app.

Now you can track your PWA’s install engagement based on the method of install — via the prompt or manually via a custom prompt. Read the docs for more details.

Also, make sure you subscribe to JS Party to hear discussions about PWAs and the web platform.


Discussion

Sign in or join to comment

0:00 / 0:00