To use this plugin:
cloud_firestoreas a dependency in your pubspec.yaml file.
- Using the Firebase Console, add an Android app to your project.
- Follow the assistant, and download the generated
google-services.jsonfile and place it inside
- Modify the
android/build.gradlefile and the
android/app/build.gradlefile to add the Google services plugin as described by the Firebase assistant. Ensure that your
android/build.gradlefile contains the
maven.google.comas described here.
- Using the Firebase Console, add an iOS app to your project.
- Follow the assistant, download the generated
GoogleService-Info.plistfile. Do NOT follow the steps named "Add Firebase SDK" and "Add initialization code" in the Firebase assistant.
ios/Runner.xcworkspacewith Xcode, and within Xcode place the
In addition to the
cloud_firestore dependency, you'll need to modify the
web/index.html of your app following the Firebase setup instructions:
Read more in the