Detect if the address bar is displayed in iOS

On a web page being viewed on an iOS device, I would like to use JavaScript to determine if the address bar is currently displayed. Or if I could detect if the page was launched from the main screen or not.

The main goal I have is to add instructions on how to add to the main screen if they did not start the page, and then hide the instructions.

+4
source share
1 answer

I found an answer that you can check with "window.navigator.standalone" for iOS to see if the application is loaded in full screen.

More details here .

+3
source

Source: https://habr.com/ru/post/1337994/


All Articles