I am working on a Password Management App. My team used the following SO reference on how to log-out a user after a set amount of time (selected in settings by the user) and bring the user directly back to the sign-in page: iOS perform action after period of inactivity (no user interaction)
We have come across a problem. When the user navigates away from the app, then the app auto-logs out, and then the user navigates back to the app, it will show the page the user was previously on for a split second. Testing this, I was able to capture a photo of that page in that split second. This creates a security loop-hole in that the app will show private information for a split second and can be captured in a photo!
Does anyone have any suggestions, links or sample code that will ensure the app will show the sign-in page immediately if you navigate back to app after being away from the app and the app has logged-out in the background?