My app exposes sensitive data, so anytime the user leaves the app after 'x' minutes, I want to remove their session, forcing them to log back in when they re-enter the app. This is super simple when the app is closed, and they come back in, as it calls the App constructor where I can check to see if their Session exists (I'm using CrossSettings to store this info). If it exists, I take them into the app, if it does not exist, I force them to the Login. What I can't figure out is how to force this when the OnResume() is called.
When a user comes in from the app being in the background and OnResume() is called, I check to see if it's been longer than 'x' minutes, if it has, how do I restart the app?