Hi all.
Is it possible to logout user from the app if user leave it open for, let say 20 minutes?
Like the session on web . The session expired - the user logged out.
I'm writing an app that works with sensitive data and don't want it to be open for all time. If the user put a phone on a table and left for a coffee I want him to login again.
Yes.
I assume that the app starts with the user logged out.
Create a timer in the starter service that ticks every minute (60000). Check if any of the activities are visible with:
B4X:
If IsPaused(Main) And IsPaused(SecondActivity)... Then
Counter = Counter + 1
If Counter = 20 Then logout
Else
Counter = 0
End If