# Web app keeping tablet screen from sleeping

**URL:** <https://forum.xojo.com/t/web-app-keeping-tablet-screen-from-sleeping/32124>\
**Category:** General\
**Created:** [June 23, 2016, 4:53pm UTC](https://forum.xojo.com/t/web-app-keeping-tablet-screen-from-sleeping/32124 "2016-06-23T16:53:35Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shant\_Khatcherian](https://forum.xojo.com/letter_avatar_proxy/v4/letter/s/eb9ed0/32.png) [@Shant\_Khatcherian](https://forum.xojo.com/u/Shant_Khatcherian)\
**Post date:** [June 23, 2016, 4:53pm UTC](https://forum.xojo.com/t/web-app-keeping-tablet-screen-from-sleeping/32124/1 "2016-06-23T16:53:35Z")

</div>

Dear all,

Is it possible to let a web app request that a mobile device client screen doesnt go to sleep?

Thanks!

---

<div class="post-metadata">

**Author:** ![Tim\_Parnell](https://forum.xojo.com/user_avatar/forum.xojo.com/tim_parnell/32/161_2.png) [@Tim\_Parnell](https://forum.xojo.com/u/Tim_Parnell)\
**Post date:** [June 23, 2016, 5:41pm UTC](https://forum.xojo.com/t/web-app-keeping-tablet-screen-from-sleeping/32124/2 "2016-06-23T17:41:04Z")

</div>

Probably not. Web apps are websites, and have very limited access to the actual system.  
That’s not to say that Google hasn’t concocted it’s own internal systems for this for things like Chromebook, but you’ll have to do some research to find out if anybody has special tags that allow for this.

As far as standard website functions, and Xojo Web Apps, the answer is no.

---

<div class="post-metadata">

**Author:** ![Michel\_Bujardet](https://forum.xojo.com/user_avatar/forum.xojo.com/michel_bujardet/32/252_2.png) [@Michel\_Bujardet](https://forum.xojo.com/u/Michel_Bujardet)\
**Post date:** [June 23, 2016, 5:59pm UTC](https://forum.xojo.com/t/web-app-keeping-tablet-screen-from-sleeping/32124/3 "2016-06-23T17:59:06Z")

</div>

You can also instruct the user to modify his sleep settings.

---

<div class="post-metadata">

**Author:** ![Shant\_Khatcherian](https://forum.xojo.com/letter_avatar_proxy/v4/letter/s/eb9ed0/32.png) [@Shant\_Khatcherian](https://forum.xojo.com/u/Shant_Khatcherian)\
**Post date:** [June 23, 2016, 6:32pm UTC](https://forum.xojo.com/t/web-app-keeping-tablet-screen-from-sleeping/32124/4 "2016-06-23T18:32:28Z")

</div>

When you watch a Flash video, it keeps the screen active; what’s their trick?

---

<div class="post-metadata">

**Author:** ![Tim\_Parnell](https://forum.xojo.com/user_avatar/forum.xojo.com/tim_parnell/32/161_2.png) [@Tim\_Parnell](https://forum.xojo.com/u/Tim_Parnell)\
**Post date:** [June 23, 2016, 7:14pm UTC](https://forum.xojo.com/t/web-app-keeping-tablet-screen-from-sleeping/32124/5 "2016-06-23T19:14:39Z")

</div>

Flash is a third party piece of software that must be installed and is not part of your basic web browser.  
Ever notice that it needs admin privileges?

---

<div class="post-metadata">

**Author:** ![Norman\_P](https://forum.xojo.com/letter_avatar_proxy/v4/letter/n/858c86/32.png) [@Norman\_P](https://forum.xojo.com/u/Norman_P)\
**Post date:** [June 23, 2016, 7:25pm UTC](https://forum.xojo.com/t/web-app-keeping-tablet-screen-from-sleeping/32124/6 "2016-06-23T19:25:36Z")

</div>

[quote=273691:@Tim Parnell]Flash is a third party piece of software that must be installed and is not part of your basic web browser.  
Ever notice that it needs admin privileges?[/quote]  
Thats just so it can wipe your machine out with the next zero day exploit found in it 😛

---

<div class="post-metadata">

**Author:** ![Tim\_Parnell](https://forum.xojo.com/user_avatar/forum.xojo.com/tim_parnell/32/161_2.png) [@Tim\_Parnell](https://forum.xojo.com/u/Tim_Parnell)\
**Post date:** [June 23, 2016, 9:47pm UTC](https://forum.xojo.com/t/web-app-keeping-tablet-screen-from-sleeping/32124/7 "2016-06-23T21:47:37Z")

</div>

Oh, well that makes sense.

---

<div class="post-metadata">

**Author:** ![Norman\_P](https://forum.xojo.com/letter_avatar_proxy/v4/letter/n/858c86/32.png) [@Norman\_P](https://forum.xojo.com/u/Norman_P)\
**Post date:** [June 23, 2016, 9:53pm UTC](https://forum.xojo.com/t/web-app-keeping-tablet-screen-from-sleeping/32124/8 "2016-06-23T21:53:22Z")

</div>

But look at all the cool stuff Flash can do ! 😛

---

<div class="post-metadata">

**Author:** ![Shant\_Khatcherian](https://forum.xojo.com/letter_avatar_proxy/v4/letter/s/eb9ed0/32.png) [@Shant\_Khatcherian](https://forum.xojo.com/u/Shant_Khatcherian)\
**Post date:** [June 24, 2016, 5:41am UTC](https://forum.xojo.com/t/web-app-keeping-tablet-screen-from-sleeping/32124/9 "2016-06-24T05:41:15Z")

</div>

then if a page has an embedded small invisible flash movie object that is in a loop, so potentially that could work to keep the screen from sleeping?

---

<div class="post-metadata">

**Author:** ![Michel\_Bujardet](https://forum.xojo.com/user_avatar/forum.xojo.com/michel_bujardet/32/252_2.png) [@Michel\_Bujardet](https://forum.xojo.com/u/Michel_Bujardet)\
**Post date:** [June 24, 2016, 8:21am UTC](https://forum.xojo.com/t/web-app-keeping-tablet-screen-from-sleeping/32124/10 "2016-06-24T08:21:24Z")

</div>

At the condition that Flash be enabled. Also, unless I am mistaken, iOS does not have Flash.

Besides, I am not sure people will appreciate their precious battery time being drained by a web app.

---

<div class="post-metadata">

**Author:** ![Shant\_Khatcherian](https://forum.xojo.com/letter_avatar_proxy/v4/letter/s/eb9ed0/32.png) [@Shant\_Khatcherian](https://forum.xojo.com/u/Shant_Khatcherian)\
**Post date:** [June 24, 2016, 12:44pm UTC](https://forum.xojo.com/t/web-app-keeping-tablet-screen-from-sleeping/32124/11 "2016-06-24T12:44:26Z")

</div>

[quote=273807:@Michel Bujardet]At the condition that Flash be enabled. Also, unless I am mistaken, iOS does not have Flash.

Besides, I am not sure people will appreciate their precious battery time being drained by a web app.[/quote]

sure, but the point is if a user needs the web app to stay open, e.g. watching a realtime chart, without the global display timeout setting being too long.

---

<div class="post-metadata">

**Author:** ![Michel\_Bujardet](https://forum.xojo.com/user_avatar/forum.xojo.com/michel_bujardet/32/252_2.png) [@Michel\_Bujardet](https://forum.xojo.com/u/Michel_Bujardet)\
**Post date:** [June 24, 2016, 2:29pm UTC](https://forum.xojo.com/t/web-app-keeping-tablet-screen-from-sleeping/32124/12 "2016-06-24T14:29:20Z")

</div>

Good luck 😉

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 6:22pm UTC](https://forum.xojo.com/t/web-app-keeping-tablet-screen-from-sleeping/32124/13 "2020-10-29T18:22:13Z")

</div>


