DEV Community

loading...

Discussion on: PWA Metadata in manifest.json

Collapse
olivierjm profile image
Olivier JM Maniraho

Thanks for this, is there a way to dynamically set values in a manifest file or to dynamically render different manifest file let's say based on a domain name.

Collapse
pssingh21 profile image
pssingh21 Author • Edited

Thanks for the question. I researched a bit and found a solution that might help you.

Here he is dynamically creating a link element for custom manifest based on current subdomain.
However, this may be relevant as long as the app has not been installed. Once the app has been added to home screen, in order to change the manifest file, we need to delete the app (optionally delete browsing data for the website) and reinstall it again.

medium.com/@rajathans/dynamic-pwa-...