Firebase Setup (Flutter)
Firebase is required for Bubbl push token and delivery flows on both Android and iOS.
Android
- Add
google-services.jsontoandroid/app/. - Apply Google Services plugin in
android/app/build.gradle.kts. - Ensure package name in Firebase project matches your Android
applicationId.
iOS
- Add
GoogleService-Info.plistto Runner target. - Configure Firebase in
AppDelegatebefore Bubbl runtime operations. - Set
Messaging.messaging().delegate = self. - Forward APNs token and FCM token:
BubblPlugin.updateAPNsToken(deviceToken)
BubblPlugin.updateFCMToken(token)
Verification checklist
bootsucceeds without Firebase initialization errors.- Device receives push token updates.
- Notification payloads reach
notificationEvents()stream. - Notifications work in foreground and background-open flows.