Flutter Firebase Tutorial¶
YouTube tutorial (https://www.youtube.com/watch?v=iQOvD0y-xnw)
Install firebase-tools cli if you haven't already.
Login to the Firebase CLI
Activate the flutterfire cli
Configure the project with a firebase project
Add dependencies
I had an issue with cocopods, fixed it by reinstalling with brew (https://stackoverflow.com/questions/62593939/cocoapods-not-installed-or-not-in-valid-state)
sudo gem uninstall cocoapods
brew install cocoapods
brew link --overwrite cocoapods
brew unlink cocoapods && brew link cocoapods
fire_base core error
Error: The pod "Firebase/CoreOnly" required by the plugin "firebase_core" requires a higher minimum iOS deployment version than the plugin's reported minimum version. To build, remove the plugin "firebase_core", or contact the plugin's developers for assistance. Error running pod install
Open the ios/PodFile and uncomment the platform line, change to version '13.0'
Add firestore dependency for firestore database
To get debugging certificates SHA-1
to use google sign in when debugging
I followed the instructions for setting up android, and ended up getting an error;
Following this stackoverflow (https://stackoverflow.com/questions/74226250/error-member-not-found-firebaseappplatform-verifyextends) this seemed to fix it.
I was then warned that the min sdk needed to be 23, so I manually set that value from the original flutterMinSdkVersion