I have been trying to connect my ReactNative App to firebase for two reasons - 1. Push Notifications ( Done Successfully ) 2. Events logging for each user.
I am facing issues with debugView to get live events in development mode, I am able to see my events in streamView
but after some delay.
for the above - for android - adb shell setprop debug.firebase.analytics.app "package_name"
and for ios, I have added -FIRAnalyticsDebugEnabled
to my xcode scheme.
but still none of these seems working.
I have RN0.44.
thank you,
Enable debug mode by passing the -FIRDebugEnabled argument to the application. You can add this argument in the application's Xcode scheme. When debug mode is enabled via -FIRDebugEnabled, further executions of the application will also be in debug mode.
View events in the dashboard 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.
Integrating the analytics module Google Analytics provide APIs which can be directly integrated with a web application. APIs are also readily available for integration with a native IOS or android application. Being said that, There are no APIs for Google Analytics which can be directly consumed by a React Native app.
For ios, it's possible to launch app in the simulator with FIRDebugEnabled
argument.
xcrun simctl launch "iPhone 8" com.your.package -FIRDebugEnabled
I had to pass FIRAnalyticsDebugEnabled
to make debug view show data.
xcrun simctl launch "iPhone 8" com.your.package -FIRAnalyticsDebugEnabled
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With