SankethBK / local_session_timeout

Redirect user to authentication page if the application doesn't receive any user interaction, or been running in the background for "x" duration.
https://pub.dev/packages/local_session_timeout
BSD 3-Clause "New" or "Revised" License
12 stars 19 forks source link

Reset inactivity on textfield #3

Closed wfsiew closed 2 years ago

wfsiew commented 2 years ago

How to reset inactivity when editing textfield ?

SankethBK commented 2 years ago

Hi @wfsiew can you please elaborate your issue

wfsiew commented 2 years ago

Currently how does it reset the inactivity timeout when user tap something on ui? What if user start to type something into a text field input, does it reset the inactivity timer?

SankethBK commented 2 years ago

Currently it is based only on click events. I see you got a good point, a temporary solution might be just to increase the value of userInactvitiyTimeout. So that user can click somewhere in that meantime

SankethBK commented 2 years ago

I will add a method to disable the timer if the soft keyboard is open

SankethBK commented 2 years ago

The issue has been addressed in release 1.0.0