For Android
To Register your Flutter App to Firebase, you need to follow the following steps:
Sign into Firebase using your Google account.
Create a Firebase project by clicking on Add project in the Firebase console and then entering a Project Name(e.g. flutterstarter).
To add an Android app, click the icon to launch the setup workflow. Enter
com.flutterstarter.appin Android package name field.Click Download google-services.json to obtain your Firebase Android config file(
google-services.json).Move your config file into the
android/appdirectory of your Flutter app.To enable Firebase services in your Android app, add the
google-services pluginto your Gradle files, as follows:- In your root-level (project-level) Gradle file(
app/android/build.gradle):
- In your module (app-level) Gradle file (usually
app/android/app/build.gradle), apply the Google Services Gradle plugin.
- In your root-level (project-level) Gradle file(
Add Flutter plugins in
pubspec.yamlfile.
- Run
flutter packages getand you are good to go.