snowplow / snowplow-android-tracker

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

Do not track the screen view again when app comes to foreground (close #653) #655

Closed matus-tomlein closed 8 months ago

matus-tomlein commented 10 months ago

Issue #653

Previously a screen view event was tracked again by the screen view autotracking feature when the app moved to foreground. This is not expected because the screen doesn't change when the app is in background and it is not consistent with how the screen view autotracking works on iOS.

This PR adds a check before autotracking screen views that checks that the new screen view is different from the last one.