LogoKikoMart Docs

Store Admin App: Firebase Notifications

Register the Store App in Firebase to receive push notifications.

Use the Firebase project you created in Push Notifications. Open it and go to Project settings → General, then scroll down to Your apps.

  1. Click Add app and choose Android.

  2. Enter the package name from the previous step, e.g. com.yourcompany.kiko_mart_store.

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

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

  5. In the Store 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 Store App project.
  5. Complete the Apple-specific steps (APNs key, capabilities) in the FlutterFire Apple integration guide.