Cannot see events in firebase analytics debug view

firebase debug view no devices available
firdebugenabled
flutter firebase analytics debug
firebase analytics debug web
debug analytics events
disable firebase analytics debug android
firebase events
firebase unity debug

I'm trying to run a sample app with firebase analytics. I followed the firebase analytics guides to log a test event but I cannot see any events in the debug view. I log a test event on my main activity as below:

public class MainActivity extends AppCompatActivity
{
    private FirebaseAnalytics mFirebaseAnalytics;

    @Override
    protected void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        mFirebaseAnalytics = FirebaseAnalytics.getInstance(this);

        Bundle bundle = new Bundle();
        bundle.putString("test_parameter", "test_value");
        mFirebaseAnalytics.logEvent("test_event", bundle);
    }
}

And I use the following command to see my events in the debug view:

adb shell setprop debug.firebase.analytics.app com.example.firebaseanalyticssample

And I see the logs with the following commands:

adb shell setprop log.tag.FA VERBOSE
adb shell setprop log.tag.FA-SVC VERBOSE
adb logcat -v time -s FA FA-SVC

I think maybe the problem is the null pointer exception appeared in the logs (the last line):

05-25 09:25:53.056 V/FA      (21533): Processing queued up service tasks: 2
05-25 09:25:53.086 V/FA-SVC  ( 5655): Logging event: origin=auto,name=_e,params=Bundle[mParcelledData.dataSize=132]
05-25 09:25:53.101 V/FA-SVC  ( 5655): Saving event, name, data size: _e, 87
05-25 09:25:53.106 V/FA-SVC  ( 5655): Event recorded: Event{appId='com.example.firebaseanalyticssample', name='_e', params=Bundle[{_o=auto, _r=1, _et=52395, _sc=MainActivity, _si=-5268297315019047641, _dbg=1}]}
05-25 09:25:53.106 V/FA-SVC  ( 5655): Upload scheduled in approximately ms: 500
05-25 09:25:53.111 V/FA-SVC  ( 5655): Background event processing time, ms: 31
05-25 09:25:53.621 V/FA-SVC  ( 5655): Device receiver got: com.google.android.gms.measurement.UPLOAD
05-25 09:25:53.646 V/FA-SVC  ( 5655): Device PackageMeasurementService called. startId, action: 194, com.google.android.gms.measurement.UPLOAD
05-25 09:25:53.651 D/FA-SVC  ( 5655): Uploading events. Elapsed time since last upload attempt (ms): 544
05-25 09:25:53.666 E/FA-SVC  ( 5655): Task exception on worker thread: java.lang.NullPointerException: Attempt to invoke virtual method 'long java.lang.Long.longValue()' on a null object reference: vgq.s(:com.google.android.gms:2650)

I searched a lot and just found this link regarding the exception above that says it must be an error from another application. but whenever my activity is resumed this exception occurs. I don't think that in my case this exception is caused by another apps.

I checked my sample app a lot of times so that every configuration would be exactly as the guides say. Have you any idea what can be the problem?

To enable sending of DebugView data on a connected Android test device for a configured Firebase Analytics app, execute the following command:

adb shell setprop debug.firebase.analytics.app <package_name>

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

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

iOS test device setup is as easy as Android, just use there Xcode command line arguments correspondingly:

–FIRDebugEnabled and

–FIRDebugDisabled

Android - I can't see any events in firebase console, Also note that, you can use the events provided by FirebaseAnalytics.Event the DebugView in your device and thus you can see the events in  You can view events logged in the DebugView in the Firebase console. Note: To prevent your testing and development from affecting your measurements, events logged while in debug mode will be excluded from your overall Analytics data, and will not be included in your daily BigQuery export.

I changed my development android phone and it got worked. it got worked with samsung SM-P601 and Huawei ِY560-U02 but it just kept throwing the exception below for android mobile phone samsung SM-J120F:

05-25 09:25:53.666 E/FA-SVC  ( 5655): Task exception on worker thread: java.lang.NullPointerException: Attempt to invoke virtual method 'long java.lang.Long.longValue()' on a null object reference: vgq.s(:com.google.android.gms:2650)

I checked google play services version in these three mobile phones and it was the same in all of them. I don't know what causes SM-J120F not to work.

Debugging Events, DebugView enables you to see the raw event data logged by your app To enable Analytics Debug mode on an Android device, execute the  Try to add web analytics events and not seeing them in debug view. I don't even see the events in my network request/dev tools and I'm copying the examples directly from the firebase docs – Will Oct 14 '19 at 1:33

Try this

  private FirebaseAnalytics mFirebaseAnalytics;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

    mFirebaseAnalytics = FirebaseAnalytics.getInstance(getApplicationContext());

    mFirebaseAnalytics.setAnalyticsCollectionEnabled(true);

    mFirebaseAnalytics.setMinimumSessionDuration(10000);

    mFirebaseAnalytics.setSessionTimeoutDuration(300);


    Bundle bundle = new Bundle();
    bundle.putString(FirebaseAnalytics.Param.ITEM_ID,"ID");
    bundle.putString(FirebaseAnalytics.Param.ITEM_NAME,"NAME");
    bundle.putString(FirebaseAnalytics.Param.CONTENT_TYPE,"image");

   mFirebaseAnalytics.logEvent(FirebaseAnalytics.Event.SELECT_CONTENT, bundle);
   }

You can enable verbose logging with a series of adb commands:

adb shell setprop log.tag.FA VERBOSE

adb shell setprop log.tag.FA-SVC VERBOSE

adb logcat -v time -s FA FA-SVC

REF: https://firebase.google.com/docs/analytics/android/start/

Validate your Analytics configuration with DebugView, A skewed device clock will result in delayed or missing events in your Analytics reports. Reporting. Once you have enabled Debug mode on your development  Firebase analytics event not show up on firebase console. You will see more diagnostic messages if you run: Firebase Analytics Debug View does not show

After performing Enabling debug mode make sure that date&time in your debug device or emulator and in your pc is correct.

Unable to see debugview logs in Analytics [Firebase console] · Issue , Problem: I have added firebase analytics in my project. Added some events. I couldn't see those logs in debug view of the console. But I can  To conserve network data and battery life on mobile devices, Analytics deployments poll usage data periodically – usually once per hour. However, during development, it’s helpful to see events immediately so you can make adjustments without having to wait. DebugView lets you monitor your app's events in real time.

Didn't work for me. But from logs, I've found that you need to add flavor name too. So, I had a flavor named "internal" and had to write com.package.name.internal in that adb command above.

Debugging Events in Firebase Analytics, Firebase has recently presented a DebugView feature in their Analytics product You can press on one of logged events and check specific  View events in the dashboard. You can view aggregated statistics about your events in the Firebase console dashboards. These dashboards update periodically throughout the day. For immediate testing, use the logcat output as described in the previous section. You can access this data from the Events dashboard in the Firebase console. This dashboard shows the event reports that are automatically created for each distinct type of event logged by your app.

Log Events, Prerequisite; Log events; View events in the Android Studio debug log; View Prescribed parameters: see the com.google.firebase.analytics. A great Firebase Analytics Dashboard extension — Firebase DebugView — has recently become available. It has one simple goal: show a timeline of tracking events on a selected debug device in a near real-time mode. For my test app, it received updates from the device almost immediately — in less than 3 seconds.

Cannot see events in firebase analytics debug view, I'm trying to run a sample app with firebase analytics. I followed the firebase analytics guides to log a test event but I cannot see any events in the debug view. View analytics events in the dashboard. You can view aggregrated statistics about your Analytics Events in the Firebase console dashboards. These dashboards update periodically throughout the day. For immediate testing, use the logcat output as described in the previous section. To access this data in the Firebase console:

How Long Does it Take for My Firebase Analytics Data to Show Up?, Update: Both DebugView and StreamView are available to all Firebase Firebase Analytics doesn't constantly stream down data from the client device. if your user triggers a conversion event (like making an in-app purchase). So if you want to see the current day's data, you'll want to select "Today"  [Firebase/Analytics][I-XXXxxxxxx] Debug mode is enabled. etc and [Firebase/Analytics][I-XXXxxxxxx] Debug logging enabled. But in debug View console, I am unable to see the logs as there is no device available. Please help asap as we have very big event coming in few days. 👍

Comments
  • Same problem, it works with one samsung but with another one it doesn't o_O.
  • it didn't make any difference.