Enable Firebase debug mode
Use this command to enable firebase debug mode on your device.
adb shell setprop debug.firebase.analytics.app yourappid
Use the following command to check the app id (package name) if you are not sure.
aapt dump badging path-to-your-apk
for example: aapt dump badging c:\myapp.apk
Check google_app_id correctness
And make make sure your app is using the expected google app id especially when the app has variants.
You can use apktool
to un-package your apk, and find the google_app_id
in /res/values/strings
which should be the same as the app id in the firebase project setting.
If the google_app_id
of your apk is not expected, you may need to check if it's using the right google-services.json
.
Clean your project and rebuild, if everything look good.
adb shell setprop debug.firebase.analytics.app ***package_name***
– CampionV/FA-SVC: Successful upload. Got network response. code, size: 204, 0
; Firebase says My app is connected on first use. But still can't see Debug Events; I did adb shell setprop on app package; also matched gmp_app_id: 1:8427#####:android:7dd######### in json file. Am on Spark plan! @LokeshTiwari – Mitreadb shell setprop debug.firebase.analytics.app package_name
(get the package name from your AndroidManifest.xml file, i.e. the value ofpackage
) 2. to disable it (when you're done):adb shell setprop debug.firebase.analytics.app .none.
– Serialize