简体   繁体   中英

how to add multiple apps using pwa (add to home screen)

我想使用 pwa(添加到主屏幕)添加或下载多个应用程序,例如:使用 www.example.com/value1 我可以添加我的应用程序但是在使用 www.example.com/value2 时我无法添加我的应用程序如何我可以使用 pwa 添加多个应用程序吗

Yes, you can do this. You just need to use different Web App Manifest files for all the different "pages" or "sites" you wish to have available for adding to homescreen.

For www.example.com/value1 you'll have /manifest-value1.json and for www.example.com/value2 you'll have /manifest-value2.json. Each page has its own HTML meta tag for its corresponding manifest file.

In the manifest files you use different start_url values.

https://developers.google.com/web/fundamentals/web-app-manifest https://developer.mozilla.org/en-US/docs/Web/Manifest

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM