4

So I followed all the instructions, installed the library and linked it with react-native link react-native-firebase

Added the correct code in my AppDelegate.m with my GoogleService-Info.plist file added in my XCode project.

I also added -FIRAnalyticsDebugEnabled and -FIRDebugEnabled in the Arguments Passed On Launch like the documentation said.

Events like: user_engagement and first_open are showing correctly so I'm guessing that my config is OK, but my custom events aren't showing at all in the DebugView.

In React-Native-Firebase documentation it says

The default app is pre-initialized natively therefore there is no need to call initializeApp for the default app instance.

But in this example that I tried to follow, he uses initializeApp with for parameter debug: false so that events show up.

Code that I tried:

import RNFirebase from 'react-native-firebase';

const firebaseApp = RNFirebase.initializeApp({ debug: false });
firebaseApp.analytics().logEvent("test_event");

I did the same thing and it's not working at all. What is the correct syntax to send events on DebugView? I'm a little lost here. Thanks!

I'm using RN: 0.52.0

Sam Bellerose
  • 1,782
  • 2
  • 18
  • 43
  • late to the party - did you manage to have custom events showing up in the firebase console? – flaky Jun 17 '20 at 15:52
  • It was an old project I used to work on, but if I remember it took some times before it updates and it did work it just wasn't instantly. Keep me posted if it works! – Sam Bellerose Jun 17 '20 at 22:25
  • 1
    On Android I had to enable debug mode for analytics: https://firebase.google.com/docs/analytics/debugview#enabling_debug_mode. After that the events will be visible in realtime in the firebase consoles debug view stream. – flaky Jun 19 '20 at 11:38

0 Answers0