I have integrated firebase crashlytics in my react native project. I followed the link https://rnfirebase.io/crashlytics/usage
#react-native-firebase/app was already there in project. I enabled crashlytics from firebase console and updated GoogleService-Info.plist in my project. I installed the crashlytics using
npm i #react-native-firebase/crashlytics
cd ios/ && pod install
I have latest version installed in my project https://www.npmjs.com/package/#react-native-firebase/crashlytics
Firebase crashlytics is not working at all, anyone please let me know the if i am missing something?
Few things to check:
whether your app is connecting properly to firebase, otherwise firebase will not accept GoogleService-Info.plist.
Check GoogleService-Info.plist is correctly configured in Xcode as mentioned on the plugin page.
Remove node_modules folder and reinstall using npm or using yarn
Related
Somehow I updated my firebase version. I think I was using firebase 8 and now its 10.1.0. Since then I started having problems. How can I downgrade firebase in a react native project? From where is thee version 10.1.0 selected? I do not see it in package.json.
Edit: This question refers to Flutter apps.
When adding Firebase to my Android app, the instructions say: "Finally, press "Sync now" in the bar that appears in the IDE"
However, no bar appears in Android Studio.
It seems that there used to be a button in the tool bar: Where is a "Sync project with gradle files" button in Android Studio 3?
And that more recently it could be found at "File > Sync Project with Gradle Files": Syncing Android Studio project with Gradle files
But neither of those options exist in Android Studio as of April 4, 2020. The closest thing I can find is an item in the dropdown menu that says "Sync with File System."
I thought maybe it was the same thing, but they are not:
What is the difference between Sync project with gradle files and Sync with File System?
Any ideas how I can sync project with gradle files in Android Studio in April 2020?
Thank you!
According to your picture, it looks like you are using flutter and not native android development. If you want to add firebase analytics to your flutter app then you need to go to the pubspec.yaml file, and you can add the dependency:
dependencies:
firebase_analytics: ^5.0.11
After adding it a top bar will appear to that will automatically execute pub get
https://pub.dev/packages/firebase_analytics#-installing-tab-
what I do is open the android folder of our Flutter project as a new project,
** Archivo> Abrir> Proyect-android **
in this way the IDE recognizes it, and enables the Gradle synchronization button ( only enabled in native android projects)
Image Example
once synced, you can close the native Android project, and it would be synced to your Flutter project
I'm having a little problem. When I try to deploy an unity3d app with the auth sample project from firebase I'm getting this error "error building Player: iOS framework addition failed due to a CocoaPods installation failure" but I have installed cocoapods correctly, I even uninstalled it and reinstalled it. I only get this error with the auth project, not with the database. I tried adding the cocoapods to the project with the terminal using pod init instead of having unity do it but nothing seems to work
From https://github.com/firebase/firebase-ios-sdk/issues/1845#issuecomment-425184012:
We're working on patching the Firebase C++ and Unity releases to migrate them to the 5.9.0 iOS SDK. In the meantime, under Assets/Firebase/Editor/ there are a set of files matching *Dependencies.xml files (e.g AnalyticsDependencies.xml) that reference the iOS SDK version. You'll need to modify the section of each file to reference iOS SDK 5.9.0 rather than 5.6.0.
More details at https://github.com/firebase/firebase-ios-sdk/issues/1845#issuecomment-425184012
I am on the step of platform specific installation, iOS.
It is said in instructions:
A GoogleService-Info.plist file contains all of the information
required by the Firebase iOS SDK to connect to your Firebase project.
To automatically generate the plist file, follow the instructions on
the Firebase console to "Add Firebase to your app".
I enter the console and press "Add Firebase to my iOS app".
There I should enter some required iOS Bundle (packet) ID. It is said that I can see it in my xcode project. But I do not use xcode, I use react native. Where I can find this ID?
Open up your project under
projectroot/ios
Click your project from the folder menu, select your target and go the 'General' Tab.
Under there you will find the 'Bundler Identifier'.
I've figured out by myself what to do.
I've used react-native init projectname to create react native project.
In this case android project and ios project are created in root directory in android and ios folders respectively.
You need to open ios folder in Xcode and in General tab you can see the ID (as Brockify told; the only thing he didn't tell me - how to create ios project).
Just reinstalled my mac and when I cloned my code that has been deployed to firebase hosting in the past, is now not deploying. I installed firebase tools
npm install -g firebase-tools
Then I run the following command in the project main directory
firebase login
firebase list
My app is not being displayed. I know things have switched over to google but not sure what to do to solve this. Thanks
Firebase-tools version
2.2.1
Firebase tools is upgraded to 3.0.0 right now if you've migrated over.
https://www.npmjs.com/package/firebase-tools
v2 of Firebase is not completely forwards compatible to the migrated instances. I'd highly recommend that you update.