The Safari browser on iOS allows the Web application to display in full screen for similar local app display results. However, this will require the user to add the Web application's icon to the home screen. As a developer, for a better display, we may want to prompt the user to add the Web application's icon to the home screen when the Web application is running in a non-full-screen state.
To detect whether the Web application is currently running in full-screen state, just detect if Window.navigator.standalone is true, if this property is true, the Web application is currently running in full-screen state, otherwise it is running in a non-full-screen state. When a Web application is detected to run in a non-full-screen state, the user can be prompted to add the Web application's icon to the home screen.
Window.navigator.standalone detects if iOS WebApp is running in full screen mode