B Bubbl Docs

Firebase Setup (Flutter)

Firebase is required for Bubbl push token and delivery flows on both Android and iOS.

Android

  1. Add google-services.json to android/app/.
  2. Apply Google Services plugin in android/app/build.gradle.kts.
  3. Ensure package name in Firebase project matches your Android applicationId.

iOS

  1. Add GoogleService-Info.plist to Runner target.
  2. Configure Firebase in AppDelegate before Bubbl runtime operations.
  3. Set Messaging.messaging().delegate = self.
  4. Forward APNs token and FCM token:
BubblPlugin.updateAPNsToken(deviceToken)
BubblPlugin.updateFCMToken(token)

Verification checklist

  • boot succeeds without Firebase initialization errors.
  • Device receives push token updates.
  • Notification payloads reach notificationEvents() stream.
  • Notifications work in foreground and background-open flows.