bcgov / bc-wallet-mobile

BC Wallet to hold Verifiable Credentials
Apache License 2.0
61 stars 48 forks source link

Auto lock app after user inactivity when app in foreground #2136

Open cvarjao opened 2 months ago

cvarjao commented 2 months ago

Related Issue:

al-rosenthal commented 2 weeks ago

@cvarjao Should this inactivity timer reset if the app goes into the background/ foreground? or should it maintain and update the timer according to how long it was in the background.

For example:

  1. User interacts with the app, timer reset for 5 minutes
  2. User doesn't interact with app and timer runs down to 3 minutes
  3. User pushes app into the background for 2.5 minutes
  4. App is brought back to foreground and the user doesn't interact for 30 seconds
  5. 5 minute timer is hit and the user is logged out
knguyenBC commented 3 days ago

I think the timer should reset if thrown into the foreground but not the background.