Skip to content

iOS session monitoring

Session monitoring counts the sessions of your iOS app 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

AppeliumFeedback.start(
    apiKey: "YOUR_API_KEY",
    sessionMonitoring: .enabled
)

Enable crash reporting as well to see crash-free sessions:

AppeliumFeedback.start(
    apiKey: "YOUR_API_KEY",
    crashReporting: .enabled,
    sessionMonitoring: .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 background fetch or a push notification, and time spent in the background do not.
  • Other enabled features, such as crash or error reporting, still collect their data in the background.
  • Session data is uploaded when the app moves to the background, or on the next launch if the app was closed first.

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 the first screen was shown, like the App Start trace;
  • the app version, iOS 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 the 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 Simulator;
  • while a debugger is attached;
  • while the app is being tested with Appelium Tests.

Test session monitoring on a device, with the app opened from the home screen rather than from Xcode.