Describe the bug
I do not have firebase analytics installed in my app. My app is null safe, so it is currently impossible for me to have firebase analytics installed. Here are the firebase packages I have installed:
For some reason I have firebase analytics messages appearing in my debug logs:
7.3.0 - [Firebase/Analytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http://goo.gl/RfcP7r)
7.3.0 - [Firebase/Messaging][I-FCM001000] FIRMessaging Remote Notifications proxy enabled, will swizzle remote notification receiver handlers. If you'd prefer to manually integrate Firebase Messaging, add "FirebaseAppDelegateProxyEnabled" to your Info.plist, and set it to NO. Follow the instructions at:
https://firebase.google.com/docs/cloud-messaging/ios/client#method_swizzling_in_firebase_messaging
to ensure proper integration.
7.3.0 - [Firebase/Analytics][I-ACS800023] No pending snapshot to activate. SDK name: app_measurement
7.3.0 - [Firebase/Analytics][I-ACS023012] Analytics collection enabled
7.3.0 - [Firebase/Analytics][I-ACS023220] Analytics screen reporting is enabled. Call +[FIRAnalytics logEventWithName:FIREventScreenView parameters:] to log a screen view event. To disable automatic screen reporting, set the flag FirebaseAutomaticScreenReportingEnabled to NO (boolean) in the Info.plist
When I check my realtime events in the firebase analytics dashboard, there are new events coming through.
How are these events arriving in firebase analytics? Can I add my own custom events?
Expected behavior
I expect that if firebase analytics is not installed, firebase analytics events would not be reported.
Flutter doctor
Run flutter doctor and paste the output below:
Click To Expand
```
Doctor summary (to see all details, run flutter doctor -v):
[β] Flutter (Channel stable, 2.0.2, on macOS 11.2.3 20D91 darwin-x64, locale en-US)
[β] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[β] Xcode - develop for iOS and macOS
[β] Chrome - develop for the web
[β] Android Studio (version 4.1)
[β] VS Code (version 1.54.3)
[β] Connected device (3 available)
β’ No issues found!
jonhanson@Jons-MacBook-Pro xchangr_flutter % flutter doctor -v
[β] Flutter (Channel stable, 2.0.2, on macOS 11.2.3 20D91 darwin-x64, locale en-US)
β’ Flutter version 2.0.2 at /Users/jonhanson/Projects/flutter
β’ Framework revision 8962f6dc68 (8 days ago), 2021-03-11 13:22:20 -0800
β’ Engine revision 5d8bf811b3
β’ Dart version 2.12.1
[β] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
β’ Android SDK at /Users/jonhanson/Library/Android/sdk
β’ Platform android-30, build-tools 30.0.2
β’ Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
β’ Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
β’ All Android licenses accepted.
[β] Xcode - develop for iOS and macOS
β’ Xcode at /Applications/Xcode.app/Contents/Developer
β’ Xcode 12.4, Build version 12D4e
β’ CocoaPods version 1.10.1
[β] Chrome - develop for the web
β’ Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[β] Android Studio (version 4.1)
β’ Android Studio at /Applications/Android Studio.app/Contents
β’ Flutter plugin can be installed from:
π¨ https://plugins.jetbrains.com/plugin/9212-flutter
β’ Dart plugin can be installed from:
π¨ https://plugins.jetbrains.com/plugin/6351-dart
β’ Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
[β] VS Code (version 1.54.3)
β’ VS Code at /Applications/Visual Studio Code.app/Contents
β’ Flutter extension can be installed from:
π¨ https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[β] Connected device (3 available)
β’ Jonβs iPhone (mobile) β’ 00008030-001E45192290402E β’ ios β’ iOS 14.4.1
β’ macOS (desktop) β’ macos β’ darwin-x64 β’ macOS 11.2.3 20D91 darwin-x64
β’ Chrome (web) β’ chrome β’ web-javascript β’ Google Chrome 89.0.4389.90
β’ No issues found!
```
Flutter dependencies
Run flutter pub deps -- --style=compact and paste the output below:
I found that I still had a pod for firebase/analytics, left over from before I migrated my project to null safety. When I removed this pod file, these debug messages from analytics stopped.
Bug report
Describe the bug I do not have firebase analytics installed in my app. My app is null safe, so it is currently impossible for me to have firebase analytics installed. Here are the firebase packages I have installed:
For some reason I have firebase analytics messages appearing in my debug logs:
When I check my realtime events in the firebase analytics dashboard, there are new events coming through. How are these events arriving in firebase analytics? Can I add my own custom events?
Expected behavior
I expect that if firebase analytics is not installed, firebase analytics events would not be reported.
Flutter doctor
Run
flutter doctor
and paste the output below:Click To Expand
``` Doctor summary (to see all details, run flutter doctor -v): [β] Flutter (Channel stable, 2.0.2, on macOS 11.2.3 20D91 darwin-x64, locale en-US) [β] Android toolchain - develop for Android devices (Android SDK version 30.0.2) [β] Xcode - develop for iOS and macOS [β] Chrome - develop for the web [β] Android Studio (version 4.1) [β] VS Code (version 1.54.3) [β] Connected device (3 available) β’ No issues found! jonhanson@Jons-MacBook-Pro xchangr_flutter % flutter doctor -v [β] Flutter (Channel stable, 2.0.2, on macOS 11.2.3 20D91 darwin-x64, locale en-US) β’ Flutter version 2.0.2 at /Users/jonhanson/Projects/flutter β’ Framework revision 8962f6dc68 (8 days ago), 2021-03-11 13:22:20 -0800 β’ Engine revision 5d8bf811b3 β’ Dart version 2.12.1 [β] Android toolchain - develop for Android devices (Android SDK version 30.0.2) β’ Android SDK at /Users/jonhanson/Library/Android/sdk β’ Platform android-30, build-tools 30.0.2 β’ Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java β’ Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495) β’ All Android licenses accepted. [β] Xcode - develop for iOS and macOS β’ Xcode at /Applications/Xcode.app/Contents/Developer β’ Xcode 12.4, Build version 12D4e β’ CocoaPods version 1.10.1 [β] Chrome - develop for the web β’ Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome [β] Android Studio (version 4.1) β’ Android Studio at /Applications/Android Studio.app/Contents β’ Flutter plugin can be installed from: π¨ https://plugins.jetbrains.com/plugin/9212-flutter β’ Dart plugin can be installed from: π¨ https://plugins.jetbrains.com/plugin/6351-dart β’ Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495) [β] VS Code (version 1.54.3) β’ VS Code at /Applications/Visual Studio Code.app/Contents β’ Flutter extension can be installed from: π¨ https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter [β] Connected device (3 available) β’ Jonβs iPhone (mobile) β’ 00008030-001E45192290402E β’ ios β’ iOS 14.4.1 β’ macOS (desktop) β’ macos β’ darwin-x64 β’ macOS 11.2.3 20D91 darwin-x64 β’ Chrome (web) β’ chrome β’ web-javascript β’ Google Chrome 89.0.4389.90 β’ No issues found! ```Flutter dependencies
Run
flutter pub deps -- --style=compact
and paste the output below:Click To Expand
``` Dart SDK 2.12.1 Flutter SDK 2.0.2 xchangr 1.0.0+2 dependencies: - badges 2.0.0-nullsafety.1 [flutter] - cloud_firestore 1.0.1 [cloud_firestore_platform_interface cloud_firestore_web firebase_core firebase_core_platform_interface flutter meta] - cloud_functions 1.0.0 [cloud_functions_platform_interface cloud_functions_web firebase_core firebase_core_platform_interface flutter] - cupertino_icons 1.0.2 - device_info 2.0.0 [flutter device_info_platform_interface] - dots_indicator 2.0.0 [flutter] - firebase_auth 1.0.1 [firebase_auth_platform_interface firebase_auth_web firebase_core firebase_core_platform_interface flutter meta] - firebase_core 1.0.1 [firebase_core_platform_interface firebase_core_web flutter meta] - firebase_messaging 9.0.0 [firebase_core firebase_core_platform_interface firebase_messaging_platform_interface firebase_messaging_web flutter meta] - flutter 0.0.0 [characters collection meta typed_data vector_math sky_engine] - flutter_app_badger 1.2.0 [flutter] - flutter_linkify 5.0.0 [flutter linkify] - flutter_local_notifications 5.0.0-nullsafety.1 [flutter flutter_local_notifications_platform_interface platform timezone] - flutter_localizations 0.0.0 [flutter intl characters clock collection meta path typed_data vector_math] - flutter_platform_widgets 1.0.1-nullsafety.2 [flutter] - flutter_signin_button 2.0.0-nullsafety.0 [flutter font_awesome_flutter] - fluttertoast 8.0.1-nullsafety.0 [flutter flutter_web_plugins] - geoflutterfire 3.0.0-nullsafety.1 [flutter cloud_firestore rxdart] - google_sign_in 5.0.1 [google_sign_in_platform_interface google_sign_in_web flutter meta] - http 0.13.0 [http_parser meta path pedantic] - intl 0.17.0 [clock path] - location 4.1.1 [flutter location_platform_interface location_web meta] - modal_bottom_sheet 2.0.0 [flutter] - platform_maps_flutter 1.0.0 [flutter google_maps_flutter apple_maps_flutter] - provider 5.0.0 [collection flutter nested] - rxdart 0.26.0 - sentry_flutter 4.1.0-nullsafety.1 [flutter flutter_web_plugins sentry package_info] - shared_preferences 2.0.5 [meta flutter shared_preferences_platform_interface shared_preferences_linux shared_preferences_macos shared_preferences_web shared_preferences_windows] - sign_in_with_apple 3.0.0 [flutter meta] - timeago 3.0.2 - url_launcher 6.0.2 [flutter url_launcher_platform_interface url_launcher_linux url_launcher_macos url_launcher_windows url_launcher_web] dev dependencies: - flutter_launcher_icons 0.9.0 [args image path yaml] - flutter_native_splash 1.1.4+1 [yaml image xml] - flutter_test 0.0.0 [flutter test_api path fake_async clock stack_trace vector_math async boolean_selector characters charcode collection matcher meta source_span stream_channel string_scanner term_glyph typed_data] - pedantic 1.11.0 transitive dependencies: - apple_maps_flutter 1.0.0 [flutter] - archive 3.1.2 [crypto path] - args 2.0.0 - async 2.5.0 [collection] - boolean_selector 2.1.0 [source_span string_scanner] - characters 1.1.0 - charcode 1.2.0 - clock 1.1.0 - cloud_firestore_platform_interface 4.0.0 [collection firebase_core flutter meta plugin_platform_interface] - cloud_firestore_web 1.0.1 [cloud_firestore_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins js] - cloud_functions_platform_interface 5.0.0 [firebase_core flutter meta plugin_platform_interface] - cloud_functions_web 4.0.1 [cloud_functions_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins js] - collection 1.15.0 - crypto 3.0.0 [collection typed_data] - device_info_platform_interface 2.0.1 [flutter meta plugin_platform_interface] - fake_async 1.2.0 [clock collection] - ffi 1.0.0 - file 6.1.0 [meta path] - firebase_auth_platform_interface 4.0.0 [firebase_core flutter meta plugin_platform_interface] - firebase_auth_web 1.0.2 [firebase_auth_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins http_parser intl js meta] - firebase_core_platform_interface 4.0.0 [flutter meta plugin_platform_interface] - firebase_core_web 1.0.1 [firebase_core_platform_interface flutter flutter_web_plugins js meta] - firebase_messaging_platform_interface 2.0.0 [firebase_core flutter meta plugin_platform_interface] - firebase_messaging_web 1.0.1 [firebase_core firebase_core_web firebase_messaging_platform_interface flutter flutter_web_plugins js meta] - flutter_local_notifications_platform_interface 3.0.0-nullsafety.4 [flutter plugin_platform_interface] - flutter_plugin_android_lifecycle 2.0.0 [flutter] - flutter_web_plugins 0.0.0 [flutter js characters collection meta typed_data vector_math] - font_awesome_flutter 9.0.0-nullsafety [flutter] - google_maps_flutter 2.0.1 [flutter flutter_plugin_android_lifecycle google_maps_flutter_platform_interface] - google_maps_flutter_platform_interface 2.0.2 [flutter meta plugin_platform_interface stream_transform collection] - google_sign_in_platform_interface 2.0.1 [flutter meta quiver] - google_sign_in_web 0.10.0 [google_sign_in_platform_interface flutter flutter_web_plugins meta js] - http_parser 4.0.0 [charcode collection source_span string_scanner typed_data] - image 3.0.1 [archive meta xml] - js 0.6.3 - linkify 4.0.0 - location_platform_interface 2.1.0 [flutter meta plugin_platform_interface] - location_web 3.0.0 [flutter flutter_web_plugins http_parser js location_platform_interface meta] - matcher 0.12.10 [stack_trace] - meta 1.3.0 - nested 1.0.0 [flutter] - package_info 2.0.0 [flutter] - path 1.8.0 - path_provider_linux 2.0.0 [path xdg_directories path_provider_platform_interface flutter] - path_provider_platform_interface 2.0.1 [flutter meta platform plugin_platform_interface] - path_provider_windows 2.0.0 [path_provider_platform_interface meta path flutter ffi win32] - petitparser 4.0.2 [meta] - platform 3.0.0 - plugin_platform_interface 2.0.0 [meta] - process 4.1.0 [file path platform] - quiver 3.0.0 [matcher] - sentry 4.1.0-nullsafety.1 [http meta stack_trace uuid] - shared_preferences_linux 2.0.0 [flutter file meta path path_provider_linux shared_preferences_platform_interface] - shared_preferences_macos 2.0.0 [shared_preferences_platform_interface flutter] - shared_preferences_platform_interface 2.0.0 [flutter] - shared_preferences_web 2.0.0 [shared_preferences_platform_interface flutter flutter_web_plugins meta] - shared_preferences_windows 2.0.0 [shared_preferences_platform_interface flutter file meta path path_provider_platform_interface path_provider_windows] - sky_engine 0.0.99 - source_span 1.8.0 [charcode collection path term_glyph] - stack_trace 1.10.0 [path] - stream_channel 2.1.0 [async] - stream_transform 2.0.0 - string_scanner 1.1.0 [charcode source_span] - term_glyph 1.2.0 - test_api 0.2.19 [async boolean_selector collection meta path source_span stack_trace stream_channel string_scanner term_glyph matcher] - timezone 0.7.0-nullsafety.0 [path] - typed_data 1.3.0 [collection] - url_launcher_linux 2.0.0 [flutter] - url_launcher_macos 2.0.0 [flutter] - url_launcher_platform_interface 2.0.2 [flutter plugin_platform_interface] - url_launcher_web 2.0.0 [url_launcher_platform_interface meta flutter flutter_web_plugins] - url_launcher_windows 2.0.0 [flutter] - uuid 3.0.1 [crypto] - vector_math 2.1.0 - win32 2.0.4 [ffi] - xdg_directories 0.2.0 [meta path process] - xml 5.0.2 [collection meta petitparser] - yaml 3.1.0 [collection source_span string_scanner] ```