Search code examples
iosfirebase-analytics

Firebase Analytics seemingly works perfect, but just won't show up?


In a large app which uses Firebase extensively, I'm trying analytics,

enter image description here

-FIRDebugEnabled is set fine.

The date/time on the devices is set correctly.

I have tried all of simulator, tethered device, and even building through to TestFlight.

The needed stuff is in app startup ..

    FirebaseConfiguration.shared.setLoggerLevel(.max)
    FirebaseApp.configure()
    // helps Analytics get going:
    AnalyticsConfiguration.shared().setAnalyticsCollectionEnabled(true)

Again, Firebase realtime and database works perfectly throughout.

So using Analytics.logEvent# ...

Note that the items appear perfectly in Xcode console:

2018-07-24 08:27:23.868 Blah[7501] <Debug> [Firebase/Analytics][I-ACS023105] Event is
not subject to real-time event count daily limit. Marking an event as
real-time. Event name, parameters: select_content, {
        firebase_event_origin (_o) = app;
        firebase_realtime (_r) = 1;
        item_name = tapMyProfile;
        firebase_screen_class (_sc) = Blah.SomeScreen;
        firebase_debug (_dbg) = 1;
        firebase_screen_id (_si) = 8314738347840858914;
        item_id = Blah-tapMyProfile;
        content_type = tapMyProfile;
    }

or ...

2018-07-24 08:56:12.393306-0500 Blah[7501:135963] [Firebase/Analytics][I-ACS023073] Debug
mode is enabled. Marking event as debug and real-time. Event name,
parameters: select_content, {
    firebase_event_origin (_o) = app;
    firebase_screen (_sn) = MyProfile;
    item_name = tapCamera;
    firebase_realtime (_r) = 1;
    firebase_screen_class (_sc) = Blah.OldDevDotScreen;
    firebase_debug (_dbg) = 1;
    firebase_screen_id (_si) = 8314738347840858915;
    item_id = Blah-tapCamera;
    content_type = tapCamera;
}

Notice tapMyProfile or tapCamera, one of my custom events from Analytics.logEvent#

Analytics as such does seem to be working perfectly:

enter image description here

so, those numbers update every few hours etc.

Again every item appears perfectly in the Xcode console ..

But no matter what, nothing will show up on the Firebase debug console!

enter image description here

Nothing!

What the hell could the problem be?

(Additionally I have waited a day or more and they don't show up as events either.)

How can it be that just nothing is showing up in Debug???


Solution

  • Check your device's time setting. Time needs to be accurate.