有没有办法如何禁用设备睡眠?

时间:2013-04-04 17:44:55

标签: javascript html5 trigger.io

现在使用app需要某种计时器,从5点到0点倒计时。有没有办法如何禁用设备睡眠,这会在用户定义的睡眠时间后打破这个?有没有做到这一点?

1 个答案:

答案 0 :(得分:3)

您应该能够为Android和iOS编写本机插件以禁用设备睡眠。以下是有用的链接,可以帮助您走上正确的道路:

Trigger.io native plugins

iOS: How to stop the device standby timer?

Stop android device from sleeping