# Check if the user has already installed the application

**URL:** <https://community.appfarm.io/t/check-if-the-user-has-already-installed-the-application/960>\
**Category:** Ask the community\
**Created:** [January 10, 2024, 11:27am UTC](https://community.appfarm.io/t/check-if-the-user-has-already-installed-the-application/960 "2024-01-10T11:27:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Erik](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/erik/32/78_2.png) [@Erik](https://community.appfarm.io/u/Erik)\
**Post date:** [January 10, 2024, 11:27am UTC](https://community.appfarm.io/t/check-if-the-user-has-already-installed-the-application/960/1 "2024-01-10T11:27:03Z")

</div>

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.

We have tried to use this function without success.  
[https://web.dev/articles/get-installed-related-apps](https://web.dev/articles/get-installed-related-apps)

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/1X/ea234c4155d9816d6cc626f7d3e32493919e405f.png)

---

<div class="post-metadata">

**Author:** ![rhys](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/rhys/32/1379_2.png) [@rhys](https://community.appfarm.io/u/rhys)\
**Post date:** [January 11, 2024, 12:35pm UTC](https://community.appfarm.io/t/check-if-the-user-has-already-installed-the-application/960/2 "2024-01-11T12:35:43Z")

</div>

Hi!

Thank you for submitting this to our Community.

We have a case open for this, to allow the developer to check if the app is installed, and only show the install prompt if the app is not installed.

In the meantime, there is an inbuilt App Variable that Appfarm provides called “Is Fullscreen”. Could this provide a solution?

Rhys

---

<div class="post-metadata">

**Author:** ![Lavrans](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/lavrans/32/1460_2.png) [@Lavrans](https://community.appfarm.io/u/Lavrans)\
**Post date:** [January 15, 2024, 9:40am UTC](https://community.appfarm.io/t/check-if-the-user-has-already-installed-the-application/960/3 "2024-01-15T09:40:56Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Erik](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/erik/32/78_2.png) [@Erik](https://community.appfarm.io/u/Erik)\
**Post date:** [January 16, 2024, 8:19am UTC](https://community.appfarm.io/t/check-if-the-user-has-already-installed-the-application/960/4 "2024-01-16T08:19:30Z")

</div>

Hi! Thanks for the reply, Rhys.

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.
