ServiceNow Native Mobile App Session Timeout - Playbook User CaseIssue ServiceNow Native Mobile App Session Timeout | Playbook Use Case Overview This discussion applies to the ServiceNow native mobile apps for iOS and Android. This does not apply to the ServiceNow mobile web experience or other mobile applications that integrate with ServiceNow. The ServiceNow Native Mobile app Session Timeout is configurable on the ServiceNow instance. What settings determine session timeouts in the native mobile apps? The native mobile app's session is determined by the greater of all these settings: The OAuth refresh token lifespan for the ServiceNow Mobile App record in the oauth_entity table (defined in seconds)The OAuth access token lifespan for the ServiceNow Mobile App record in the oauth_entity table (defined in seconds)The web session timeout defined by the glide.ui.session_timeout system property (defined in minutes)The integration session timeout defined by the glide.integration.session_timeout system property (defined in minutes). If this property is not defined, it will default to 5 minutes in Helsinki and 1 minute in Istanbul.The following system property glide.ui.forgetme needs to be set to true for the mobile app to successfully timeout. Note: In order to validate changes to these settings are working, you must log out and back in to the ServiceNow Mobile app. This is a critical step that will ensure the app uses tokens and sessions with the updated lifespans instead of using previously granted tokens or sessions with different lifespans. What determines session inactivity in the native mobile apps? Sessions are considered active if the app is in the foreground or if the app is processing a long running task in the background. Any of the following actions are considered backgrounding the app: Explicitly sending the app to the backgroundLocking the screen or having the screen go to sleepSwitching to a different app Any of the following states are considered actively running: The app is visible on the screen (in the foreground) and the screen is unlockedThe app is processing a long running task even if the app is in the background (such as uploading or downloading a large attachment) Symptom/Alert The ServiceNow Native Mobile App session timeout does not meet the customer requirements. How to How to validate session timeout settings are working in the native mobile apps In this example, we want the native mobile apps to log out after 30 minutes of inactivity. Configure these settings on your instance: Set the OAuth refresh token lifespan for the ServiceNow Mobile App record in the oauth_entity table to 1800 secondsSet the OAuth access token lifespan for the ServiceNow Mobile App record in the oauth_entity table to 1800 seconds or lessSet the web session timeout defined by the glide.ui.session_timeout system property to 30 minutes or lessEnsure that the integration session timeout defined by the glide.integration.session_timeout system property is either not defined or set to 30 minutes or less. If this property is not defined, it will default to 5 minutes in Helsinki and 1 minute in Istanbul. Test these timeout settings using the native mobile app: Log out of your instance with the native mobile app. This is a critical step that will ensure the app uses tokens and sessions with the updated lifespans instead of using previously granted tokens or sessions with different lifespans.Log in to your instance with the native mobile appSend the app to the background (see "What determines session inactivity in the native mobile apps?" above)Wait 30 to 35 minutesLaunch the app and notice that the user has been logged out Additional Documentation and Agent Process Basic - if the issue has not been resolved: If this change does not work have the customer uninstall the ServiceNow Native Mobile App and reinstall. Escalation - for escalating the use case, include the following information: If this does not help, and ServiceNow Native Mobile App still does not work for the customer, open a task for the Dev – Mobile team. Additional Documentation: ServiceNow Native Mobile App Session Timeout: https://support.servicenow.com/kb_view.do?sys_kb_id=1802580cdb16fe004816f3231f96195a