Looping a one-second (very short) video in Android can prevent automatic sleep. Finally, there is no need to use new APIs that are not officially supported by browsers. iOS seems to use a JavaScript timer to continuously self.location to prevent the screen from automatically sleeping, but it is said that this is not effective in iOS7. . .
Using Page Visitable API on Android can detect lock screen events, but the test on iOS7 is invalid. It is not clear on other versions of iOS.
Not completely resolved, continue to wait for the answer.
Looping a one-second (very short) video in Android can prevent automatic sleep. Finally, there is no need to use new APIs that are not officially supported by browsers. iOS seems to use a JavaScript timer to continuously self.location to prevent the screen from automatically sleeping, but it is said that this is not effective in iOS7. . .
Using Page Visitable API on Android can detect lock screen events, but the test on iOS7 is invalid. It is not clear on other versions of iOS.
Not completely resolved, continue to wait for the answer.