Use the same Firebase project as the other apps. Open it and go to Project settings → General, then scroll down to Your apps.
Click Add app and choose Android.
-
Enter the Delivery App package name from the previous step, e.g.
com.yourcompany.kiko_mart_delivery. Enter an app nickname, e.g.
KikoMart Delivery.Click Register app and download
google-services.json.-
In the Delivery App project, delete the existing
android/app/google-services.jsonand put your downloaded file in its place. -
Open
lib/main.dart, find theFirebaseOptionsblock and replace the four values with the ones from yourgoogle-services.json:await Firebase.initializeApp( options: const FirebaseOptions( apiKey: 'YOUR_API_KEY', // client > api_key > current_key appId: 'YOUR_APP_ID', // client > client_info > mobilesdk_app_id messagingSenderId: 'YOUR_SENDER_ID', // project_info > project_number projectId: 'YOUR_FIREBASE_PROJECT_ID', // project_info > project_id ), );
- Click Add app and choose iOS.
- Enter the bundle identifier from the previous step.
- Register the app and download
GoogleService-Info.plist. - Place the file in the
ios/Runner/folder of the Delivery App project. - Complete the Apple-specific steps (APNs key, capabilities) in the FlutterFire Apple integration guide.
