Flutter session monitoring
Session monitoring counts the sessions of your Flutter app on iOS and Android and measures how long each one lasts in the foreground. The Appelium Dashboard uses these sessions for session duration, the adoption of each release and the crash-free session rate behind release rollout health. Sessions and active devices shows what these sessions tell you about your audience: daily, weekly and monthly active devices, stickiness and the spread of session lengths.
Enable session monitoring
Enable it together with crash reporting, to see crash-free sessions:
AppeliumFeedback.start(
apiKeys: apiKeys,
crashReporting: CrashReportingConfiguration.enabled,
sessionMonitoring: SessionMonitoringConfiguration.enabled,
);
How sessions are measured
- A session starts when the app comes to the foreground and ends when it moves to the background.
- Only time in the foreground counts towards session duration. Background launches, for example for a push notification, and time spent in the background do not.
- Session data is uploaded when the app moves to the background, or on the next launch if the app was closed first.
Sessions are measured by the native SDK of each platform, like in native apps; see iOS and Android session monitoring for the details.
What is collected
Each session contains:
- its start time and foreground duration;
- for the session in which the user launched the app, the launch duration until Flutter showed its first frame, like the App Start trace;
- the app version, OS version, device model and locale;
- average CPU and memory usage;
- the user identifier and backend environment, if set;
- a random identifier that the SDK generates for the device, used to count devices. It is not an advertising or vendor identifier.
Sessions do not contain screens, user input or logs.
When sessions are not recorded
To keep your metrics representative, sessions are not recorded:
- on the iOS Simulator and the Android emulator;
- while a native debugger is attached.
Test session monitoring on a device, with a release build opened from the home screen or the launcher.