Skip to main content

In-App Messaging

What does it do?#

Firebase In-App Messaging helps you engage your app's active users by sending them targeted, contextual messages that encourage them to use key app features. For example, you could send an in-app message to get users to subscribe, watch a video, complete a level, or buy an item. You can customize messages as cards, banners, modals, or images, and set up triggers so that they appear exactly when they'd benefit your users most. Use Firebase In-App Messaging to encourage exploration and discovery: highlight a sale or coupon in your ecommerce app, give clues or tips in your game, or prompt a like or share in your social media app.

Installation#

1. Make sure to initialize Firebase#

Follow this guide to install firebase_core and initialize Firebase if you haven't already.

caution

Dart-only initialization is currently not supported with firebase_in_app_messaging, please follow the Platform Setup section from the manual installation guide for the supported platforms.

2. Add dependency#

On the root of your Flutter project, run the following command to install the plugin:

flutter pub add firebase_in_app_messaging

3. Rebuild your app#

Once complete, rebuild your Flutter application:

$ flutter run

Next Steps#

Once installed, you're ready to start using In-App Messaging in your Flutter Project.

View the Usage documentation to get started.