Skip to content

Conversation

Lyokone
Copy link
Contributor

@Lyokone Lyokone commented Jul 24, 2025

BREAKING CHANGE: Removes deprecated methods from firebase_analytics package

  • Removed setCurrentScreen() method (deprecated in favor of logScreenView())
  • Removed logSetCheckoutOption() method (deprecated and unsupported in Enhanced Ecommerce reports)

Migration Guide

Replace setCurrentScreen() with logScreenView()

Before:

await FirebaseAnalytics.instance.setCurrentScreen( screenName: 'home_screen', screenClassOverride: 'HomeScreen', );

After:

await FirebaseAnalytics.instance.logScreenView( screenName: 'home_screen', screenClass: 'HomeScreen', );

Remove logSetCheckoutOption() calls

The logSetCheckoutOption() method has been completely removed as it's unsupported in updated Enhanced Ecommerce reports. If you were using this method, consider using alternative ecommerce tracking methods or consult the Firebase Analytics documentation for current best practices.

@Lyokone Lyokone changed the title feat!(analytics): remove deprecated methods for breaking change release feat(analytics)!: remove deprecated methods for breaking change release Jul 24, 2025
Copy link
Member

@russellwheatley russellwheatley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI needs fixing on this one

@Lyokone Lyokone merged commit ea3034d into main Jul 25, 2025
28 of 30 checks passed
@Lyokone Lyokone deleted the feat/analytics-deprecation branch July 25, 2025 14:13
@firebase firebase locked and limited conversation to collaborators Aug 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

3 participants