Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Enable Firebase debugView Events in React native

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.

enter image description here

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,

like image 305
BeingExpert Avatar asked Jan 05 '18 18:01

BeingExpert


People also ask

How do I enable FIRDebugEnabled?

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.

How do I check my Firebase events?

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.

How do I add Analytics to react native?

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.


1 Answers

For ios, it's possible to launch app in the simulator with FIRDebugEnabled argument.

xcrun simctl launch "iPhone 8" com.your.package -FIRDebugEnabled

Edit:

I had to pass FIRAnalyticsDebugEnabled to make debug view show data.

xcrun simctl launch "iPhone 8" com.your.package -FIRAnalyticsDebugEnabled
like image 54
Orkhan Alikhanov Avatar answered Sep 22 '22 23:09

Orkhan Alikhanov