Praxiteles Praxiteles - 1 year ago 119
iOS Question

Where is the FIReventNames.h file listing the various event classes for Google Firebase?

We want to log an event in Google Firebase like we do in Yahoo Flurry:

[Flurry logEvent:@"Stats page visited"];


Google Firebase documentation claims that to find "suggested events see the FIReventNames.h header file" but we are unable to find this file.

Where do we find this file?

  • Searching the project in Xcode - we don't see it even though we have
    installed the POD files for Firebase/Analytics.

  • Search Google and there is essentially nothing. There are just five results. Not five pages. Five results. Three of those results are duplicates of the page we linked above.

  • If you look at the iOS Samples, they contribute nothing additional. Google's sample code gives three examples for logging Firebase events and they are the exact same examples as on the page we referenced above. None seem to show what we are trying to do above.

We seem unable to find any of the other classes for the various event types.

Where do we find the suggested Firebase analytic event logging classes?

Answer Source

FIREventNames.h can be found in Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.Framework/Headers

To log that event with Firebase Analytics, first :

@import FirebaseAnalytics;

then issue the following call :

[FIRAnalytics logEventWithName:@"stats_page_visited" parameters:nil];
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download