Use the same Firebase project as the Store App. Open it and go to Project settings → General, then scroll down to Your apps.
Click Add app and choose Android.
-
Enter the Customer App package name from the previous step, e.g.
com.yourcompany.kiko_mart_user. Enter an app nickname, e.g.
KikoMart.Click Register app and download
google-services.json.-
In the Customer 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 ), );
iOS Firebase setup instructions for the Customer App are coming soon.
