Create a Firebase project
- Login to https://console.firebase.google.com/
- Create a new project: In the Firebase console, click Add project -> Fill project name and Continue

- Keep the rest with a default setting for Step 2 and 3

After a minute or so, your Firebase project will be ready. Click Continue.

Get started by adding Firebase to your app
Configure iOS
- Click the iOS button under “Get started by adding Firebase to your app”.

- Fill iOS bundle ID -> Register
- Next step, download GoogleService-Info.plist file
- Open ios/Runner.xcworkspace -> Drag & Drop GoogleService-Info.plist file to ios/Runner/


- Then, you will the GoogleService-Info.plist file inside ios/Runner/ directory

- You’re done configuring your Flutter app for iOS here.
Configure Android
- In the console select Project Overview in the left nav, then click the Android button under “Get started by adding Firebase to your app”.
Note: If you’ve already added an app (for example, the iOS app from the preceding section), click Add app -> Select Android icon.

- Fill package name -> Register app
- Next step, download and move the google-services.json file into android/app/ directory

- Update android/build.gradle
buildscript {
ext.kotlin_version = '1.3.50'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.0'
classpath 'com.google.gms:google-services:4.3.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
allprojects {
repositories {
google()
jcenter()
}
}
- Open android/app/build.gradle, then add the following line as the last line in the file:
apply plugin: 'com.google.gms.google-services'

- You’re done configuring your Flutter app for Android!
