What event fires when a WebKit WebApp is “terminated”

后端 未结 2 1471
走了就别回头了
走了就别回头了 2020-12-11 09:28

I am in the process of developing a Web App for iOS and am using the DOMApplicationCache. I know that Web Apps can not run in the background, but I still would like to simul

2条回答
  •  無奈伤痛
    2020-12-11 09:57

    You can use the "pageshow" event to detect when the app has resumed. This event will fire when user returns to your app from a different safari tab. It will also fire when user clicks the home button and then comes back to the app by clicking on safari button

         
    

    I have tested this on the iOS simulator and its working as I described above.

提交回复
热议问题