Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

idle.watch is suspended when the mobile browser is minimised #205

Open
sriramkondeti opened this issue Jul 17, 2017 · 2 comments
Open

idle.watch is suspended when the mobile browser is minimised #205

sriramkondeti opened this issue Jul 17, 2017 · 2 comments

Comments

@sriramkondeti
Copy link

Hi there,

Just would like to check with you, Is there a way to keep the idle.watch() running even when the browser is minimised in mobile? Am Developing a mobile website for a bank and security is the top priority. So, when the user Mobile browser is minimised, I was expecting the ng-idle to consider user state as inactive and log him out after the time out.So, when he opens the browser again he's already logged out.

Unfortunately this isn't happening on mobile chrome, Mozilla and safari. The pop-up count down starts when he opens a minimised browser and he believes that he can continue the session. But then he's already logged out on the server side and gets force logged out when he tries to perform a transaction.. This isn't appreciable from the UI/UX point of view.

I would like to know if theres any work around I can use to fix this issue. Much appreciable if you can help.

Thanks & Best Regards,
Ram.

@julienmusat
Copy link

julienmusat commented Feb 19, 2018

+1

I'm facing the same problem with suspended tabs, for instance when using chrome extension "The Great suspender" which allow you to suspend tab (to save memory), the timer stop running.
When the user comes back and reload the tab, the idle timeout is not fired.

Any workaround ?

Thanks very much

@julienmusat
Copy link

I had a look at the improvement done here : 7e93bb9

Actually I noticed the browser local storage is lost when the tab is suspended.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants