I have a Progressive Web Application which working fine (can be installed and working offline) on Server 1. We made a new server for testing (Server 2), however the PWA cannot be installed properly here. The A2HS popup shows up, installing seems fine, but the icon has a chrome badge at bottom right, and it is not sowing up in the settings/applications list. Reloading the page causes the A2HS popup again, making new icons next to the old ones.
There are three problems I can though at this moment:
Server 1 has normal URL (https://server1/pwa), but Server 2 uses up address (https://xxx.xxx.x.xxx/pwa).
Accessing Server 2 from mobile shows a warning at application/Manifest: “some of the icons could not be loaded”. The icons from the path can be loaded manually. It resolved 200 both ways, according to the IIS logs. This warning only shows up on mobile, desktop version works fine. The mobile is connecting through 4G/VPN. The connection is fast, and the icons are less than 40kb
Some IIS configuration mismatch, but I don't remember configuration about the PWA, it worked out of the box.
Lighthouse shows perfect score. Everything is checked.
My goal is to install the app properly, so it only shows the A2HS once, and install the app to settings/applications.