mercredi 31 janvier 2018

Ember app `setTimeout` not working on screen display turned off

I am calculating the idle time of my application using setTimeout or 'Later` function. I am getting the issue when the user switch off the screen.

example: when timeout reach 10min, i would like to logout. But when user switch of the screen and opens back at 30min, still not my app logged out because of timeout was suspended.

shortly, how can i run my setTimeout still the display screen switched off in any of the mobile phone?




Aucun commentaire:

Enregistrer un commentaire