This project is prepared for Firebase-based real-time synchronization using Firebase Core and Cloud Firestore. Follow these steps to complete the platform-specific configuration.
Already configured in pubspec.yaml:
firebase_corecloud_firestore
Run in your own environment (with Flutter installed):
flutter pub getFirebase is initialized in lib/main.dart:
WidgetsFlutterBinding.ensureInitialized();await Firebase.initializeApp();- App bootstrapped only after Firebase initialization completes.
This ensures the app is ready to interact with Firebase services (e.g., Firestore) from startup.
-
Create a Firebase project in the Firebase Console.
-
Add an Android app with your applicationId.
-
Download the generated
google-services.json. -
Place it at:
android/app/google-services.json
-
In your local Android project (outside this repo’s scope), ensure:
com.google.gms:google-servicesclasspath is added toandroid/build.gradle.apply plugin: "com.google.gms.google-services"is added inandroid/app/build.gradle.
Do not commit real google-services.json with production keys to version control.
-
In the same Firebase project, add an iOS app with your iOS bundle identifier.
-
Download
GoogleService-Info.plist. -
Add it to the Xcode project:
- Drag
GoogleService-Info.plistinto theRunnertarget.
- Drag
-
Ensure Firebase initialization is enabled in your iOS Runner configuration according to official Firebase Flutter docs.
Do not commit real GoogleService-Info.plist with production keys to public repos.
- This repository intentionally does not include any real Firebase configuration files or secrets.
- Once platform config files are added correctly in your local environment:
Firebase.initializeApp()inlib/main.dartwill succeed.- You can safely add Firestore-based real-time synchronization in subsequent phases (5.3+).
- Keep separate configs for dev/stage/prod using different Firebase projects if needed.