# Geolocation Permission Request

**URL:** <https://forum.inductiveautomation.com/t/geolocation-permission-request/55454>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [January 27, 2022, 7:56pm UTC](https://forum.inductiveautomation.com/t/geolocation-permission-request/55454 "2022-01-27T19:56:41Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jacob.ramirez](https://avatars.discourse-cdn.com/v4/letter/j/9dc877/32.png) [@jacob.ramirez](https://forum.inductiveautomation.com/u/jacob.ramirez)\
**Post date:** [January 27, 2022, 7:56pm UTC](https://forum.inductiveautomation.com/t/geolocation-permission-request/55454/1 "2022-01-27T19:56:41Z")

</div>

Is there a way to request geolocation permission from Perspective?

---

<div class="post-metadata">

**Author:** ![jespinmartin1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jespinmartin1/32/57175_2.png) [@jespinmartin1](https://forum.inductiveautomation.com/u/jespinmartin1)\
**Post date:** [January 27, 2022, 10:43pm UTC](https://forum.inductiveautomation.com/t/geolocation-permission-request/55454/2 "2022-01-27T22:43:34Z")

</div>

Like those Session Props?  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/a/5a79294bb819cd87a7a2c03e33a844a3a9175d47.png)

---

<div class="post-metadata">

**Author:** ![jacob.ramirez](https://avatars.discourse-cdn.com/v4/letter/j/9dc877/32.png) [@jacob.ramirez](https://forum.inductiveautomation.com/u/jacob.ramirez)\
**Post date:** [January 27, 2022, 10:55pm UTC](https://forum.inductiveautomation.com/t/geolocation-permission-request/55454/3 "2022-01-27T22:55:09Z")

</div>

Well, the one I’m talking about is above that. There is a property called permission and when I run a session that value is false.

---

<div class="post-metadata">

**Author:** ![jespinmartin1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jespinmartin1/32/57175_2.png) [@jespinmartin1](https://forum.inductiveautomation.com/u/jespinmartin1)\
**Post date:** [January 27, 2022, 10:58pm UTC](https://forum.inductiveautomation.com/t/geolocation-permission-request/55454/4 "2022-01-27T22:58:32Z")

</div>

On a Browser I think you won’t be able to grant a permission. While in Perspective App, you can enable location permissions for it.

---

<div class="post-metadata">

**Author:** ![jacob.ramirez](https://avatars.discourse-cdn.com/v4/letter/j/9dc877/32.png) [@jacob.ramirez](https://forum.inductiveautomation.com/u/jacob.ramirez)\
**Post date:** [January 27, 2022, 10:59pm UTC](https://forum.inductiveautomation.com/t/geolocation-permission-request/55454/5 "2022-01-27T22:59:50Z")

</div>

Right, it works correctly from the Perspective App but when running it from a browser (on phone) it doesn’t prompt me to allow it to access my phone’s location.

---

<div class="post-metadata">

**Author:** ![jespinmartin1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jespinmartin1/32/57175_2.png) [@jespinmartin1](https://forum.inductiveautomation.com/u/jespinmartin1)\
**Post date:** [January 27, 2022, 11:05pm UTC](https://forum.inductiveautomation.com/t/geolocation-permission-request/55454/6 "2022-01-27T23:05:54Z")

</div>

A workaround for it to make an HTTP request to API based on IP-location. Maybe getting a token from google maps or try a free one.

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [January 28, 2022, 8:54am UTC](https://forum.inductiveautomation.com/t/geolocation-permission-request/55454/7 "2022-01-28T08:54:44Z")

</div>

It should work, however your standard settings of the browser and stuff also matter and it remembers your choice.

On the desktop you can see it here. On phones it will depend on your device i guess

> [@Geolocation , i am not able to get latitude and longitude value](https://forum.inductiveautomation.com/t/geolocation-i-am-not-able-to-get-latitude-and-longitude-value/52393/4):
>
> You should turn this on in a different location. As it prompts the user to click something so this should happen before centering the map. (unless you are looping through it i guess) you will have to check your browser if it allowes geolocation, This might be somewhere else in the settings turned off to. [image]

---

<div class="post-metadata">

**Author:** ![jacob.ramirez](https://avatars.discourse-cdn.com/v4/letter/j/9dc877/32.png) [@jacob.ramirez](https://forum.inductiveautomation.com/u/jacob.ramirez)\
**Post date:** [January 28, 2022, 2:31pm UTC](https://forum.inductiveautomation.com/t/geolocation-permission-request/55454/8 "2022-01-28T14:31:28Z")

</div>

When loading it on the desktop Chrome there was a popup asking for my location. Like this:

 ![know-your-location](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/b/fbfd3859aa86a36610abc06839a33f470434449a.jpeg)

But it was for the IP address or something to the Perspective session. I clicked allow and then my GPS coordinates were populating in the session properties.

Now from a mobile Chrome standpoint, it has never asked me that. In the settings for Chrome on an Android phone, you can see what sites you allowed and blocked access to your location and none of them are my perspective application.
