# Perspective Mobile Connection

**URL:** <https://forum.inductiveautomation.com/t/perspective-mobile-connection/32761>\
**Category:** Ignition Early Access\
**Created:** [March 3, 2020, 1:18pm UTC](https://forum.inductiveautomation.com/t/perspective-mobile-connection/32761 "2020-03-03T13:18:46Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon55648468](https://avatars.discourse-cdn.com/v4/letter/a/f6c823/32.png) [@anon55648468](https://forum.inductiveautomation.com/u/anon55648468)\
**Post date:** [March 3, 2020, 1:18pm UTC](https://forum.inductiveautomation.com/t/perspective-mobile-connection/32761/1 "2020-03-03T13:18:46Z")

</div>

Hi guys, i am wondering what is the best way to stop my mobile connection with the perspective app running. At the moment when the screen locks, after a period of time it loses connection to the gateway. Is this an inactivity setting on the project or something related to the mobile?

---

<div class="post-metadata">

**Author:** ![grietveld](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/grietveld/32/6984_2.png) [@grietveld](https://forum.inductiveautomation.com/u/grietveld)\
**Post date:** [March 3, 2020, 1:58pm UTC](https://forum.inductiveautomation.com/t/perspective-mobile-connection/32761/2 "2020-03-03T13:58:21Z")

</div>

If I recall correctly its an issue with the way the OS interacts with the app. I’m not sure if its something that you can work around on the device.

---

<div class="post-metadata">

**Author:** ![anon55648468](https://avatars.discourse-cdn.com/v4/letter/a/f6c823/32.png) [@anon55648468](https://forum.inductiveautomation.com/u/anon55648468)\
**Post date:** [March 3, 2020, 3:15pm UTC](https://forum.inductiveautomation.com/t/perspective-mobile-connection/32761/3 "2020-03-03T15:15:42Z")

</div>

That’s interesting, so it appears when my phone into idle mode (black screen) communication lasts for about 5 minutes. So there is nothing we can do to keep the connection active?

---

<div class="post-metadata">

**Author:** ![grietveld](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/grietveld/32/6984_2.png) [@grietveld](https://forum.inductiveautomation.com/u/grietveld)\
**Post date:** [March 3, 2020, 3:17pm UTC](https://forum.inductiveautomation.com/t/perspective-mobile-connection/32761/4 "2020-03-03T15:17:25Z")

</div>

What type of device/OS are you on? There might be some small improvements to work around, but I think most of it would be on the app side of things unfortunately.

---

<div class="post-metadata">

**Author:** ![anon55648468](https://avatars.discourse-cdn.com/v4/letter/a/f6c823/32.png) [@anon55648468](https://forum.inductiveautomation.com/u/anon55648468)\
**Post date:** [March 3, 2020, 3:24pm UTC](https://forum.inductiveautomation.com/t/perspective-mobile-connection/32761/5 "2020-03-03T15:24:07Z")

</div>

I am testing this on a Samsung A10. I guess for the moment, keeping the phone active will avoid this from happening

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [March 3, 2020, 3:27pm UTC](https://forum.inductiveautomation.com/t/perspective-mobile-connection/32761/6 "2020-03-03T15:27:19Z")

</div>

You should look at modifying these two settings:

1. Session Timeout, found in the Designer Menu under `Project Properties > Perspective > General`

![12%20AM](https://us1.discourse-cdn.com/inductiveautomation/original/2X/b/b9a6e16bf5faa57cb2b90517470f558a9aad8b00.png)

1. `preventSleep` found in Session properties (`session.props.device.settings.preventSleep`)

![41%20AM](https://us1.discourse-cdn.com/inductiveautomation/original/2X/4/463ddf677eb5421285f9b83529da79def274cfe0.png)

---

<div class="post-metadata">

**Author:** ![anon55648468](https://avatars.discourse-cdn.com/v4/letter/a/f6c823/32.png) [@anon55648468](https://forum.inductiveautomation.com/u/anon55648468)\
**Post date:** [March 3, 2020, 3:37pm UTC](https://forum.inductiveautomation.com/t/perspective-mobile-connection/32761/7 "2020-03-03T15:37:18Z")

</div>

Thanks for the advice, i have timeout on max value and preventSleep enabled. But if you press the lock button to set screen to black, it will still disconnect after a few minutes

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [March 3, 2020, 3:41pm UTC](https://forum.inductiveautomation.com/t/perspective-mobile-connection/32761/8 "2020-03-03T15:41:51Z")

</div>

Ah, yes, I believe this is indeed an OS-level “setting” to prevent app activity (and data usage) when the device is not in use. I don’t know if there is a way to prevent this.
