-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lock after inactivity #10
Comments
After more thought about this, inactivity at an app level maybe isn't all that useful, as if people are security conscious their system auto lock timers will be set to something small. Even the banking apps I've tried don't incorporate reshowing of their own biometric/passcode locks after a period of inactivity. I'll leave this issue open for a period of time, if this is something that people want I'll do some more investigation. I know this is possible using a Listener and then I've found a possible way which could check for keyboard interactions, media is still an issue though as will be things like screen readers or other semantic navigation methods. I think if an app wants this done, it could be done without requiring AppLock to implement it and the app using AppLock can make the best decision about measuring inactivity for its own context. There's a What are your thoughts @zhaoshenhao, as you originally requested this? If this doesn't get much more interest I'll close this issue. |
I built my app for all supported platform (win/mac/linux). This enhancement will be very useful in desktop version. Forgot to mention: AppLock perfectly works on all platform ;-) Regards, Allen |
This functionality is what lead me to this package in the first place and i think it is an excellent feature to add to the package. Even though your banking app doesn't have it, they definitely should and I am happy mine does. I think the right implementation would be to implement a listener on touch and click events in the app, which will reset the lock timer. Then expose this function so developers can reset the timer on other events, like button presses. This will give users the flexibility that you mentioned above. |
@tobiasht sure thing, thank you for joining the conversation! I'll give this a revisit. |
Is your feature request related to a problem? Please describe.
It would be a useful feature to lock the screen after X amount of time of inactivity.
Describe the solution you'd like
Something akin to setting
inactivityLockLatency
onAppLock
Describe alternatives you've considered
Requiring users of this package to manually measure inactivity and make calls to
AppLock.of(context).showLockScreen()
Additional context
Requested as part of #7.
Methods of measuring activity that need to be considered:
The text was updated successfully, but these errors were encountered: