authpass / authpass

AuthPass - Password Manager based on Flutter for all platforms. Keepass 2.x (kdbx 3.x) compatible.

Home Page:https://authpass.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Auto-lock after x minutes of inactivity

hpoul opened this issue · comments

for desktop, probably requires flutter/flutter#30735

commented

"Auto-lock after x minutes of inactivity" Is this issue applicable for platform-android?

@Jaideep-C yep, it is for all platforms. The basic issue is that right now the password database remains open in the background as long as the OS does not kill the app.. i guess we could split this issue into two, separating desktop and mobile.. but the basic steps would be

  1. A new preferences setting for Autolock - which can be Never (ie, Off), Immediately when moved into background, after 1 minute, 5 minutes, 10 minutes.
  2. Register app life cycle listener to check for app being moved into background
  3. After the specified amount of time "lock" files
  4. Make sure when the app comes back into the foreground that all lock timers are cleared in case the user switches into to so before the timeout
  5. We would need to test this really good, both on ios and android. And make sure it does not interfere with desktop (probably only register lifecycle listeners on mobile?)

Hope this makes sense?

commented

@hpoul Yah that totally made sense!
I have an idea may be this is not the optimistic one but I think we can have a physical notification as soon as the app goes to background till 'X' mins. With that physical physical notification we can reset the timer if the app comes to foreground before the completion of 'X' mins.
Please correct me if there are any limitations or anything wrong in this idea!

I'm not sure if that is really necessary.. maybe as an optional add-on if someone wants a reminder.. the only useful function i could imagine is a notification like "password files will unlock in x minutes" with a [ lock mow ] button..

With that physical physical notification we can reset the timer if the app comes to foreground before the completion of 'X' mins.

Couldn't we do that anyway, no matter if there is a notification or not?

Or do you mean iOS scheduled notifications? 🤔

Perhaps auto close all files at specified interval?

if this isnt closed, id like to learn and contribute to this, help me out here.