LogoKikoMart Docs

Customer App: Firebase Notifications

Register the Customer App in Firebase to receive push notifications.

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

  1. Click Add app and choose Android.

  2. Enter the Customer App package name from the previous step, e.g. com.yourcompany.kiko_mart_user.

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

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

  5. In the Customer 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
      ),
    );
    

iOS Firebase setup instructions for the Customer App are coming soon.