Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
现在正在开发需要某种计时器的应用程序,该计时器将从 5:00 分钟倒计时到 0:00。有没有办法如何禁用设备睡眠,这会在用户定义的睡眠时间后打破这个?有什么技巧可以做到这一点吗?
您应该能够为 Android 和 iOS 编写本机插件来禁用设备睡眠。以下是有用的链接,可以帮助您走上正确的道路:
Trigger.io 原生插件
iOS:如何停止设备待机计时器?
停止 android 设备休眠