Skip to content
pubscout

firebase_in_app_messaging

0.10.2, released 5 days ago by firebase.google.com

Flutter plugin for Firebase In-App Messaging campaigns.

WASM-ready
$ flutter pub add firebase_in_app_messaging
Source repository

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.

Works with

Packages commonly used together with firebase_in_app_messaging: ones it builds on, ones built on it, and its own family.