I have same exact code, on one hosting company it works and on other it does not, what can be the cause, perhaps the way they have php settings configured
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.