Mobile Analytics reports app usage data based on activity captured within sessions. A session is a period of time during which the app is active on the device. A session begins when an app is launched or brought to the foreground, and ends when the app is terminated or goes to the background. There is an inactivity period of up to 5 seconds, so a brief interruption, like receiving a text message, does not count as a new session.
Mobile Analytics tracks sessions and events submitted during each session to generate the reports displayed in the console. Total Daily Sessions shows the number of sessions your app has each day. Average Sessions per Daily Active User shows the mean number of sessions per user per day.
Apps that use the AWS Mobile SDK for iOS or AWS Mobile SDK for Android to access Mobile Analytics start a session when they create the service object for their platform. To manage a running session, the app must additionally create the session object. This session object gives your app access to session management.
When your app starts, it should start a session that Mobile Analytics can then begin to track. Apps that use the AWS Mobile SDK for Unity or Xamarin to access Mobile Analytics automatically start a session when they create the service object. The service object gives your app access to session management.