Snowplow Android and iOS Trackers version 3.1 released

We are pleased to announce the release of our mobile trackers: Snowplow iOS Tracker and Android Tracker version 3.1.

This version has some improvements to the session management and the tracker control.

About the session management, we noticed that the behaviour of the session timeout checking with the lifecycle events could cause bad interpretation of the session in some edge cases. The previous version of the tracker used to check the timeout based on the state of the app. To make an example, a transition from foreground to background was causing the generation of an application_background event checking the session with the background timeout, accordingly with the state of the app. This caused a weird behaviour where the session remained the same even if an app was in background for longer than the background timeout. This new version fix that issue.

Another improvement to the session management is the ability to receive the details of the new session (SessionID, SessionIndex, etc.) as soon as the session is renewed. That’s a feature that disappeared with the v2 of the native mobile trackers.

We added back another feature that was removed with v2: the ability to pause and resume the emission of events. In cases of low bandwidth or low battery we can allow the app to pause the emission of the events without pausing the ability to track them.

CHANGELOG

Android tracker

Bug fixes:

  • Check session for background event using foreground timeout (#499)

Enhancements:

  • Add pause and resume to EmitterController (#505)
  • Add session callback (#500)

Under the hood:

  • Update copyright headers to 2022 (#502)
  • Update links to v3 docs in README (#498)

iOS tracker

Bug fixes:

  • Check session for background event using foreground timeout (#667)

Enhancements:

  • Add pause and resume to EmitterController (#672)
  • Add session callback (#664)

Under the hood:

  • Update copyright headers to 2022 (#669)
  • Update links to v3 docs in README (#665)

Snowplow Android Tracker version 3.1 is available on Maven Central.
The project’s source code can be found here.

Snowplow iOS Tracker version 3.1 is available on Cocoapods.
The project’s source code can be found here.

3 Likes