For iOS

To Register your Flutter App to Firebase, you need to follow the following steps:

  1. Sign into Firebase using your Google account.
  2. Create a Firebase project by clicking on Add project in the Firebase console and then entering a Project Name(e.g. flutterstarter).
  3. To add an iOS app, click the icon to launch the setup workflow. Enter com.flutterstarter.app in the iOS bundle ID field.
  4. Click Register App to continue.
  5. Click Download GoogleService-Info.plist to obtain your Firebase iOS config file (GoogleService-Info.plist).
  6. Open XCode at ios/Runner/Runner.xcodeproj, move the file into the Runner/Runner directory of your Flutter app.

Note: It’s important that you don’t simply drag this into the folder without going through Xcode, as this will not work.

  1. Add Flutter plugins in pubspec.yaml file.
dependencies:
flutter:
sdk: flutter
//Add plugins here
cloud_firestore: ^0.12.9
firebase_core: ^0.4.0+8
  1. Run flutter packages get and you are good to go.