We have an app that is allowing certain functionality only to those with Admin role. We return the employee and check the role during onResume().
We found that if the app is in the background when a new employee enters their PIN, this is fine as it will trigger the event to check again. However, if the app is in the foreground when the employee changeover happens then it does not trigger onResume().
Do you know if there's a better way that we can be doing this?
Thanks, James