Firebase Analytics Integration to Android

Firebase Integration in Android Application

Firebase Analytics Integration to Android
Photo by Kenny Eliason / Unsplash

Config

get a google-services.json via Firebase setup

Dependency

follow Firebase instructions to add relevant dependency

Debugging

add adb to Path in MAC

export PATH=$PATH:/Users/username/Library/Android/sdk/platform-tools/

enable debugview

adb shell setprop debug.firebase.analytics.app com.domain.yourpackage

disable debugview

adb shell setprop debug.firebase.analytics.app .none.

DebugView in Firebase

APP Dashboard->Analytics->DebugView

Notice

in China, a VPN is required for the test device.
might as well just use an emulator, showing sdk_gphone64_arm64 as a Debug Device in the Firebase dashboard, after significant delays

Flutter Error: ...FormatException: Unexpected end of input (at character 1)

remove existing androidproject/app/google-services.json