Possible to have multiple `manifest.json` for PWA?

后端 未结 2 1021
鱼传尺愫
鱼传尺愫 2020-12-17 17:54

Consider I have:-

  • PWA at myapp.firebaseapp.com with it\'s own manifest.json.
  • Admin for the PWA at myapp.firebaseapp.co
2条回答
  •  盖世英雄少女心
    2020-12-17 18:38

    Sure; the manifest for a given page is determined by the presence of a DOM element with details about the manifest's location.

    Assuming you have full control over the HTML for /admin and for all other pages, you can include in the HTML for /admin, and in the HTML for other pages.

    Each of the manifests can include, e.g., a different start_url value so that they take the user to a different initial page.

提交回复
热议问题