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

后端 未结 7 714
栀梦
栀梦 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-29 23:58

    Since the problem is with mobile safari and it supports popstate event, you can use this event to detect when the user is back

提交回复
热议问题