check if user has already installed PWA to homescreen on Chrome?

前端 未结 5 1394
孤城傲影
孤城傲影 2020-12-24 02:04

I\'m trying to create an \"Add To Home Screen\" button on my progressive web app, as described in Chrome\'s documentation.

I\'m generally following the prescribed p

5条回答
  •  别那么骄傲
    2020-12-24 02:18

    I was looking for something similar and the simple solution is the scope passed in the manifest.web manifest file (manifest.json renamed to manifest.webm), we need to remove the scope from the manifest file and now if we have PWA added to our home screen and someone clicks a link outside the PWA triggers open by default.

    Website : https://ctrltab.co.in/

    manifest: https://ctrltab.co.in/manifest.webmanifest

提交回复
热议问题