Firebase

Android

  • In the center of the Firebase console's project overview page, click the Android icon to launch the setup workflow. If you've already added an app to your Firebase project, click Add app to display the platform options.

  • On the next screen, enter your Android package name & App nickname and click on Register App. Your package name is generally the applicationId in your app-level build.gradle file. If specified, the app nickname will be used throughout the Firebase console to represent this app. Nicknames aren’t visible to users.

  • Download the google-services.json file & place it in your project’s app root directory. Make sure the config file is not appended with additional characters, like (2).

  • Back in the Firebase console-setup workflow, click Next to skip the remaining steps.

  • Run flutter packages get

iOS

Configure an iOS app:

  • In the Add an app to get started section, click on iOS Icon to add an iOS app to Firebase.

  • On the next screen, enter your iOS bundle ID & App nickname and click on Register App. You can find your Bundle Identifier in the General tab for your app’s primary target in Xcode. If specified, the app nickname will be used throughout the Firebase console to represent this app. Nicknames aren’t visible to users.

  • Download the GoogleService-Info.plist file. Make sure the config file is not appended with additional characters, like (2).

  • Using XCode, move the file into the Runner/Runner directory of your Flutter app.

  • Back in the Firebase console setup workflow, click Next to skip the remaining steps.

  • Run flutter packages get

Last updated