If the user has already installed the app, we do not want the “install app prompt” to be displayed when the user opens the application in the browser. If the user with the application already installed presses the install button the application throws a warning and ends the execution without any feedback to the user.
You could also add a boolean app variable with local storage persistence, that is set to true whenever the user installs the app. This would also be device specific, so the prompt would reappear if the user accessed the application on desktop after installing on mobile.
The “Is Fullscreen” variable also works on iPhone at least.
Glad to hear that you are working on it We already use the “Is Fullscreen” variable. The problem is that some user still opens the app in their browser after installing the application. The app then displays the install promp with an install button that doesn’t work.