How to detect in iOS webapp when switching back to Safari from background?

后端 未结 7 687
栀梦
栀梦 2020-11-29 23:29

How can I build a webpage which is able to monitor when the page gets the focus, especially when Safari is in the background and the user switches Safari back to the foregro

相关标签:
7条回答
  • 2020-11-30 00:12

    The Page Visibility API would probably offer a solution to this Problem. I guess this API has not been implemented in Mobile Safari yet, at least I haven't found any documentation for an iOS implementation. However, an Implementation has been commited to the Webkit Trunk, so there is a chance that it will be supported by future Versions of Mobile Safari.

    0 讨论(0)
提交回复
热议问题