I have built an android twa(trusted web activity) app from angular 8 PWA(progressive web app) using bubblewrap. The app has Google Signin button, to login into the app, and view the other screens in the app.
When the app is minimized, i would like to logout the user automatically. This means, when the user brings the app again to foreground, user should see the login screen.
Are there any callback methods available to TWA, for android app lifecycle?