firebase_in_app_messaging
0.10.2, released 5 days ago by firebase.google.com
Flutter plugin for Firebase In-App Messaging campaigns.
What it does
Allows apps to display targeted contextual messages to active users using Firebase In-App Messaging. Provides message lifecycle streams and supports custom Flutter UI rendering for campaigns.
AI-written summary of version 0.10.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to display in-app promotional or informational messages via Firebase
- You want to listen to message lifecycle events like clicks, impressions, and dismissals
- You want to render custom Flutter UI for in-app messaging campaigns
Skip it when
- You only need push notifications or background remote messages
- You are not using Firebase as your backend service
Strengths
- Native integration with Firebase In-App Messaging API
- Exposes lifecycle event streams such as clicks, impressions, and dismissals
- Supports custom Flutter display mode for custom campaign rendering
Weaknesses
- Requires proper Firebase setup and configuration
- Does not automatically open action URLs in custom display mode
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 4
Requires adding firebase_core, initializing Firebase, and setting up Android/iOS project configurations according to Firebase guidelines.
FirebaseInAppMessaging.instance.onMessageClicked.listen((event) {
print('${event.campaignMetadata.campaignName} -> ${event.action.actionUrl}');
});Alternatives
Packages that do the same job and could replace firebase_in_app_messaging.
- awesome_notifications_fcm
Firebase Cloud Messaging integration for awesome_notifications push features
72Compare - firebase_messaging_handler
Unified Firebase Cloud Messaging handler with inbox, scheduling, and in‑app messaging for Flutter
68Compare - fcm_actions
Production-ready FCM actions, tokens, topics, and routing for Flutter apps.
65Compare - firebase_notifications_handler
Handle Firebase Cloud Messaging notifications with built-in local notifications support.
63Compare
Works with
Packages commonly used together with firebase_in_app_messaging: ones it builds on, ones built on it, and its own family.
- firebase_corefirebase_in_app_messaging depends on itFlutter plugin that initializes Firebase and allows multiple Firebase app connections.
- firebase_core_webSame familyWeb implementation of firebase_core for Flutter apps.
- firebase_messagingSame familyFlutter plugin for Firebase Cloud Messaging to deliver messages on Android, iOS, web, and macOS.
- firebase_messaging_webSame familyWeb implementation of Firebase Cloud Messaging for push notifications.
- firebase_analyticsSame familyFlutter plugin for Google Analytics for Firebase.
- firebase_crashlyticsSame familyFlutter plugin that sends uncaught errors and crash reports to Firebase Crashlytics.
- firebase_authSame familyFlutter plugin for Firebase Authentication enabling passwords, phone numbers, and identity providers.
- firebase_auth_webSame familyWeb implementation of Firebase Authentication for Flutter