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.
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.