I want to send data to firebase analytics and I set what is necessary in XCode to be able to see that data while I am in debug mode, but nothing is being sent to firebase in iOS. I have already configured these two arguments in Xcode --> Scheme --> Arguments Passed On Launch --> FIRDebugEnabled and FIRAnalyticsDebugEnabled, as well as the IS_ANALYTICS_ENABLED property in GoogleService-Info.plist is enabled.
Podfile:
ios/Podfile:pod 'Firebase/Core', '~> 4.13.0'
pod 'Firebase/Messaging'
AppDelegate.m:#import <Firebase.h>
....
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[FIRApp configure];
[[UNUserNotificationCenter currentNotificationCenter] setDelegate:self];
.....
N/AN/AN/AXCode 10React Native version:0.50.3React Native Firebase library version:3.3.1Firebase module(s) you're using that has the issue:TypeScript?N/AExpoKit?ExpoKitN/A@Juliocbr I experienced it quite a few times too. Check out this guide I published on Medium a few weeks ago, it might help you out:
https://medium.com/@oakromulo/firebase-analytics-on-react-native-4b348466f025
Hey @oakromulo that guide is 馃敟 馃憣 - send a PR (if you want) to add it to the docs website - bottom of this file: https://github.com/invertase/react-native-firebase-docs/edit/master/docs/installation/initial-setup.md
@oakromulo thank you very much for your help.
Finally I could see the data that I sent to Firebase in real time in iOS, the problem was that I was using the simulator and for some reason it does not send data in real time, in a physical device if I can see the data in real time.
Your guide should really be included in the documentation, it is very complete, I had to read in several forums to be able to integrate analytics into my project since there is not much information.
@Juliocbr
I'm very glad that I helped you somehow!
@Salakar
Here goes the PR: https://github.com/invertase/react-native-firebase-docs/pull/138
Most helpful comment
@oakromulo thank you very much for your help.
Finally I could see the data that I sent to Firebase in real time in iOS, the problem was that I was using the simulator and for some reason it does not send data in real time, in a physical device if I can see the data in real time.
Your guide should really be included in the documentation, it is very complete, I had to read in several forums to be able to integrate analytics into my project since there is not much information.