Deep linking from Web to PWA (Standalone Version)

前端 未结 3 586
眼角桃花
眼角桃花 2021-02-04 02:15

I have a web app that it can be installed as standalone application in the homescreen thanks to PWA standard.

When a user forget his password, a email is sent to him wit

3条回答
  •  隐瞒了意图╮
    2021-02-04 02:45

    If you set your scope properly in the manifest.json file, all links in other applications will open in the standalone version instead of the browser. Note that links in the browser will still prefer the browser version instead of the standalone. For example:

    "start_url": "/",
    "scope": "/",
    "display": "standalone"
    

    Note: Navigating directly to https://example.com/app/ from the address bar will work exactly as the same as it does for native apps that have an intent filter. Chrome assumes the user intended to visit the site and will open this site.

    Source: developers.google.com/web/fundamentals/integration/webapks

提交回复
热议问题