Firebase Analytics: screen_view for MainActivity triggered on app foreground after upgrading FlutterFire and Firebase Android BoM #18112
Replies: 0 comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the problem
After upgrading our FlutterFire dependencies and Firebase Android BoM, we observed a change in Firebase Analytics automatic screen tracking behavior.
When the app returns from background → foreground, a screen_view event for MainActivity is now triggered automatically.
This behavior did not occur in the previous versions, where returning to foreground only produced a user_engagement event and no additional screen_view.
We would like to confirm whether this behavior change is expected due to updates in Firebase Analytics or the underlying Measurement SDK.
Dependency changes
FlutterFire (before)
firebase_core: 3.10.1
firebase_analytics: 11.4.1
firebase_crashlytics: 4.3.1
FlutterFire (after upgrade)
firebase_core: 4.3.0
firebase_analytics: 12.1.0
firebase_crashlytics: 5.0.6
Android Firebase BoM
Before
implementation platform("com.google.firebase:firebase-bom:32.7.2")
After upgrade
implementation platform("com.google.firebase:firebase-bom:34.7.0")
Environment
Flutter version
Flutter 3.38.6
Steps to reproduce
Launch the app
MainActivity is opened
Press Home button → app goes to background
Reopen the app from launcher or recent apps
Observe events in Firebase
Question
Was there any change in automatic screen tracking behavior in recent Firebase Analytics versions that causes screen_view to be triggered when the app returns from background?
Is this the intended behavior, or a side effect of updates in the Firebase Analytics / Measurement SDK?
Beta Was this translation helpful? Give feedback.
All reactions