snowplow / snowplow-android-tracker

Snowplow event tracker for Android. Add analytics to your Android apps and games
http://snowplowanalytics.com
Apache License 2.0
110 stars 63 forks source link

Add version to default remote configuration and don't update unless remote configuration is newer #603

Closed matus-tomlein closed 1 year ago

matus-tomlein commented 1 year ago

When the user configures the tracker using remote configuration and sets a default configuration, the default configuration will always be replaced by the fetched configuration regardless of whether it is different or not. This causes a new session to start (since a new tracker is created).

To prevent replacing the tracker in case the remote configuration is the same as the default configuration, we should add a configuration version to the default configuration and only replace it if the fetched configuration has a higher version.

The same issue on the Android tracker.