PWA, actively add desktop icon installation event, desktop startup event

demand: need to count the installation of desktop icons and desktop entry traffic

I don"t know if there are related API and events

  1. installation statistics, installation callback event
  2. Desktop Startup event

about the first point: install callback. Try to use the beforeinstallprompt event, but only the application adds the banner, and the user does not trigger it.

the second point can be achieved by start_url by adding query parameters. I wonder if there are other methods

.

actively add desktop icons through the chrome browser toolbar:

Menu