LogoKikoMart Docs

Delivery Partner App: Firebase Notifications

Register the Delivery App in Firebase to receive push notifications.

Use the same Firebase project as the other apps. Open it and go to Project settings → General, then scroll down to Your apps.

  1. Click Add app and choose Android.

  2. Enter the Delivery App package name from the previous step, e.g. com.yourcompany.kiko_mart_delivery.

  3. Enter an app nickname, e.g. KikoMart Delivery.

  4. Click Register app and download google-services.json.

  5. In the Delivery App project, delete the existing android/app/google-services.json and put your downloaded file in its place.

  6. Open lib/main.dart, find the FirebaseOptions block and replace the four values with the ones from your google-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
      ),
    );
    
  1. Click Add app and choose iOS.
  2. Enter the bundle identifier from the previous step.
  3. Register the app and download GoogleService-Info.plist.
  4. Place the file in the ios/Runner/ folder of the Delivery App project.
  5. Complete the Apple-specific steps (APNs key, capabilities) in the FlutterFire Apple integration guide.