How can I (if at all) disable device sleep in Trigger.io?

六眼飞鱼酱① 提交于 2019-12-10 15:46:15

问题


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



来源:https://stackoverflow.com/questions/12477902/how-can-i-if-at-all-disable-device-sleep-in-trigger-io

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!