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

2019-06-26 08:09发布

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?

标签: trigger.io
1条回答
我命由我不由天
2楼-- · 2019-06-26 09:02

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

查看更多
登录 后发表回答