Quick Start
Mobile App
Firebase Integration

Firebase integration

Create Firebase project

Navigate to the Firebase Console (opens in a new tab) and create a new project


Launcher Icon

Launcher Icon

Launcher Icon

Launcher Icon

Add Android to the project


Launcher Icon

  • Make sure you are using the correct package name. You can find the package name in the android/app/build.gradle file

Launcher Icon
  • Make sure you download the google-services.json file and place it in the android/app directory

Launcher Icon

Launcher Icon

If you're having issue while trying to login using Google on Android, make sure you have the SHA-1 key added to the Android Firebase project. You can generate and see the SHA-1 key by running the following command in the terminal:

keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android

Add iOS to the project


Launcher Icon

Launcher Icon
  • At the next step, make sure you download the GoogleService-Info.plist file and place it in the ios/Runner directory

  • Make sure you have these two files inside the project


Launcher Icon

Configure iOS notifications

Follow the steps from the Firebase documentation (opens in a new tab) to configure iOS notifications

Enable Firebase authentication

We will enable the following authentication methods:


Launcher Icon

You just need to follow the steps from the Firebase Console, for each of them.


Launcher Icon

Launcher Icon

In order for the Apple Sign In to work, you need to add the Sign in with Apple capability to your project, from xcode. Select the Signing & Capabilities tab, and add "Sign In With Apple" as a new Capability then select a team on the Code Signing section.


Launcher Icon

Launcher Icon

This will generate and configure an App ID in the "Certificates, Identifiers & Profiles" section of the Apple Developer portal.

Enable inside project

After you done all the steps above, you need to open a terminal inside the root directory of the mobile app and run the following commands, one after another:

firebase login
dart pub global activate flutterfire_cli
flutterfire configure

Make sure you enable both android and ios when asked