HTML5 App Screen Sleep/Timeout on iPad

前端 未结 3 1622
轮回少年
轮回少年 2020-12-20 14:58

We\'re currently developing an HTML 5 app for the iPad and looking for a method to prevent the screen from going to standby/sleep. I understand this is possible with a nativ

3条回答
  •  粉色の甜心
    2020-12-20 15:45

    Standby/sleep modes are rooted to the OS, so it's pretty much impossible to achieve with HTML5. Why would you do this anyway? Maybe you could think of a timeout function in case the device was in standby/sleep and came back. This answer looks useful but I haven't yet test it.

提交回复
热议问题