Add ignore functionality for session refresh
Description
Added functionality to ignore the refresh session popup during an app session.
Screen record
Technical details
Added back press handling for Android 13, Android 12, and lower. Implemented check for session refresh on app start.
Due to a change in Android 12 behavior (https://is.gd/7HzORm), the onCreate() and onDestroy() activity lifecycle callbacks will not be triggered anymore while using back navigation. Hence, onBackPressed() has to be overridden to detect if the app session is going to be closed by the user using back navigation.
In Android 13+, onBackPresses() will not be invoked. Hence, OnBackInvokedCallback is used to detect back navigation by the user.
Tests
Manual checks have been performed on Android 11, 12, 13 and 14 devices to check if the app maintains consistent behavior.
Issues
Issue link: https://gitlab.e.foundation/e/os/backlog/-/issues/1844