Flutter: create a Firebase project

Create a Firebase project

  • 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!

https://medium.com/p/183b681e4cb5

nhancv.com

upwork.com/fl/nhancv

Leave a Reply

Your email address will not be published.Required fields are marked *