# Geo-fence security

**URL:** <https://forum.inductiveautomation.com/t/geo-fence-security/62922>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [August 11, 2022, 4:17pm UTC](https://forum.inductiveautomation.com/t/geo-fence-security/62922 "2022-08-11T16:17:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Benjamin\_Gott](https://avatars.discourse-cdn.com/v4/letter/b/eb8c5e/32.png) [@Benjamin\_Gott](https://forum.inductiveautomation.com/u/Benjamin_Gott)\
**Post date:** [August 11, 2022, 4:17pm UTC](https://forum.inductiveautomation.com/t/geo-fence-security/62922/1 "2022-08-11T16:17:18Z")

</div>

I have a question about geo-fencing. When the Perspective app is not actually in focus on the mobile device, can someone confirm whether or not location data can still be reported back to the SCADA project for interpretation by a PLC? I want to be able to track personnel locations while the app is open, even if its in the background.

---

<div class="post-metadata">

**Author:** ![apalas](https://avatars.discourse-cdn.com/v4/letter/a/e47774/32.png) [@apalas](https://forum.inductiveautomation.com/u/apalas)\
**Post date:** [September 2, 2022, 8:13pm UTC](https://forum.inductiveautomation.com/t/geo-fence-security/62922/2 "2022-09-02T20:13:06Z")

</div>

Hi Benjamin,

The only way I can see approaching this is by taking advantage of `system.tag` functions and the `geolocation` session properties.

[https://docs.inductiveautomation.com/display/DOC81/system.tag](https://docs.inductiveautomation.com/display/DOC81/system.tag)  
[https://docs.inductiveautomation.com/display/DOC81/Session+Properties#SessionProperties-SessionPropertiesTable](https://docs.inductiveautomation.com/display/DOC81/Session+Properties#SessionProperties-SessionPropertiesTable)

These can both be used inside of a property change script:

[https://docs.inductiveautomation.com/display/DOC81/Perspective+Property+Change+Scripts](https://docs.inductiveautomation.com/display/DOC81/Perspective+Property+Change+Scripts)

However, I think this may only work when the app is open.
