-->

How can I (if at all) disable device sleep in Trig

2019-06-26 09:00发布

问题:

I'm trying to decide whether I should go with PhoneGap or Trigger.io for a mobile app I'm about to build. One of the "must haves" is the ability to disable display sleep. I've seen various hacks for PhoneGap (idleTimerDisabled) and even a plugin that lets you control this directly from JS, but I've yet to find ANYTHING on this topic in Trigger.io.

So, is it possible?

回答1:

You should be able to write a native plugin for Android and iOS to disable the device sleep. Here are useful links that should get you on the right path:

Trigger.io native plugins

iOS: How to stop the device standby timer?

Stop android device from sleeping



标签: trigger.io