开发者

Javascript running on mobile safari whilst iphone is locked

开发者 https://www.devze.com 2023-03-14 14:40 出处:网络
My webapp is currently sending an AJAX request every 5 seconds. Is it possible to allow it to continue doing this even when the iPhone is locked?

My webapp is currently sending an AJAX request every 5 seconds. Is it possible to allow it to continue doing this even when the iPhone is locked?

At present is seems like the javascript is paused when the phone is locked and r开发者_如何学运维esumed when it's unlocked again.


The entire application (mobile safari) will pause itself when it goes into the background. What you're asking is not possible on IOS unless you roll your own app.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号