
Configurer
Documentation
Firebase
Firebase powers Analytics, Crashlytics, Cloud Save (via Firestore), and app-side messaging. Setup is one command.
1. Create a Firebase project
Go to the Firebase Console and create a new project. You don't need to add Android or iOS apps by hand — the FlutterFire CLI does it for you.
2. Run flutterfire configure
From the repo root:
bash
flutterfire configureThe CLI walks you through:
- Picking the Firebase project.
- Registering the Android app (matches the applicationId you set in Identifiers).
- Registering the iOS app (matches the bundle ID).
- Writing
google-services.json,GoogleService-Info.plist,firebase_options.dart, andfirebase.json.
All four files are gitignored — they contain your project's public config, and they get rewritten each time you run flutterfire configure, so we never track them.
3. Re-run when identifiers change
If you rename the app's Android package or iOS bundle ID after Firebase is set up, the existing config files no longer match. Run flutterfire configure again and select the same Firebase project — the CLI updates registrations and rewrites the four files.
Précédent
Identifiants app
Suivant
Clé de signature