Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase Analytics Debug View does not show anything

I linked my Android app with Firebase using Android Studio Which created and set my google-service.json into my project.

When i debug my event logging in logcat i got :

V/FA-SVC: Successful upload. Got network response. code, size: 204, 0 

But nothing is showing into firebase console debug view

like image 944
mvand Avatar asked Mar 13 '17 16:03

mvand


People also ask

How do I enable debug mode in Firebase Analytics?

To enable Analytics debug mode in your browser, install the Google Analytics Debugger Chrome extension. Once installed, enable the extension and refresh the page. From that point on, the extension will log events in your app in debug mode. You can view events logged in the DebugView in the Firebase console.

How do you debug a view?

Simply execute the DebugView program file (dbgview.exe) and DebugView will immediately start capturing debug output. Note that if you run DebugView on Windows 2000/XP you must have administrative privilege to view kernel-mode debug output.

How do I know if Firebase Analytics is working?

In the Firebase console, open your project. Select Analytics from the menu to view the Analytics reporting dashboard. The Events tab shows the event reports that are automatically created for each distinct type of event logged by your app.

What is debug view Google Analytics?

The DebugView report shows you data (from events, event parameters, and user properties) as Analytics collects the data. The report can help you set up data collection, troubleshoot issues as issues arise, and understand a user's behavior as the user explores your website or app.


2 Answers

Test device setup

To enable sending of DebugView data on a connected Android test device for a configured Firebase Analytics app, you can follow the step below:

  1. If you are simply working with single build variant, the following command is enough:

    adb shell setprop debug.firebase.analytics.app [your_app_package_name] 
  2. But if you are working with multiple build variants with different application IDs which are not the same as the app package name, be sure to execute the following command:

    adb shell setprop debug.firebase.analytics.app [your_application_id] 

    Here, application ID is the app ID of your build variant found in the corresponding gradle file. For example, lets say you have x.gradle and y.gradle for two build variants x and y, and you also have the general build.gradle file. To debug the build variant x with application ID com.abc.x, the command will be:

    adb shell setprop debug.firebase.analytics.app com.abc.x 

    Similarly, to debug the build variant y with application ID com.abc.y, the command will be:

    adb shell setprop debug.firebase.analytics.app com.abc.y 

This behavior persists until you explicitly disable it by executing the following command:

adb shell setprop debug.firebase.analytics.app .none. 
like image 149
Diptendu Das Avatar answered Oct 12 '22 15:10

Diptendu Das


After performing steps from Enabling debug mode, make sure that date and time on your debug device or emulator and on your PC is correct.

If after correcting the date and time events are still not showing on DebugView, clear the app storage. Then restart the app and try again.

like image 24
Ashraf Atef Avatar answered Oct 12 '22 14:10

Ashraf Atef