How to run JavaScript event when the iPad's screen is locked?
I am developing an alarm in HTML5 for iPad, but I noticed that when the screen goes into standby (or is b开发者_开发问答locked by the user), Safari blocks all events. I tried setTimeout()
.
How to solve?
I just need to refresh the page or run a .mp3
after a certain period of time.
That's not possible. Safari goes to sleep when the device is in sleep mode.
Running Timer in iPhone Sleep mode (with no javascript)?
You'd need a native app for this, AFAIK.
精彩评论