1. Home
  2. Docs
  3. Flutter Chat App
  4. Flutter Firebase Setup

Flutter Firebase Setup

In this setup, we have 3 major and multiple minor steps. Please read it carefully & complete one by one.

Step 1: Create a new firebase project

Login to console.firebase.google.com

Goto Project OverView -> Project Settings -> General & add your support Email

Scroll Down & Click Add Android Project

Fill Required Details

To Generate SHA 1 Hash key:


Download Google-services.json file


IOS Setup

Navigate to Project Settings & Add iOS

Fill Required Details

Download GoogleService-Info.plist file


Step 2: Android Setup

Copy & Paste your google-services.json file into projectname/android/app/

Open projectname/android/app/build.gradle & add firebase dependencies

dependencies {
    implementation 'com.google.firebase:firebase-core:17.0.0'

Update your package name

defaultConfig {
    applicationId "com.flutterowl.testproj"

Add followling line to end of the projectname/android/app/build.gradle file

apply plugin: 'com.google.gms.google-services'

Open projectname/android/build.gradle & Add

dependencies {
    classpath 'com.google.gms:google-services:4.2.0'

Step 3: iOS Setup

Copy & Paste your Downloaded GoogleService-Info.plist into projectname/ios/Runner folder

Open projectname/ios/PODFile (Execute pod install if file not found) & Add ;

pod 'Firebase/Core;

& Execute

pod install

Open projectname/ios/Runner.xcworkspace & Choose Project & Add File to Runner & Choose GoogleService-Info.plist with choose target of Runner