Firebase Analytics Integration to Android

Firebase Integration in Android Application

Firebase Analytics Integration to Android
Photo by Kenny Eliason / Unsplash


get a google-services.json via Firebase setup


follow Firebase instructions to add relevant dependency


add adb to Path in MAC

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

enable debugview

adb shell setprop com.domain.yourpackage

disable debugview

adb shell setprop .none.

DebugView in Firebase

APP Dashboard->Analytics->DebugView


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