firebase-in-app-messaging

Solid

Integrates Firebase In-App Messaging into Flutter apps. Use when setting up in-app messaging, triggering or suppressing messages, managing user privacy and opt-in data collection, or testing campaigns.

API & Backend 565 stars 55 forks Updated 4 weeks ago MIT

Install

View on GitHub

Quality Score: 89/100

Stars 20%
92
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Firebase In-App Messaging Skill This skill defines how to correctly use Firebase In-App Messaging in Flutter applications. ## When to Use Use this skill when: * Setting up Firebase In-App Messaging in a Flutter project. * Triggering or suppressing in-app messages programmatically. * Implementing opt-in data collection for user privacy. * Testing campaigns with specific devices. --- ## 1. Setup and Configuration ``` flutter pub add firebase_in_app_messaging ``` ```dart import 'package:firebase_in_app_messaging/firebase_in_app_messaging.dart'; ``` - Initialize Firebase before using any In-App Messaging features. - In-App Messaging **retrieves messages from the server once per day** by default to conserve power. **Finding your Installation ID for testing:** - **Android:** Look for `I/FIAM.Headless: Starting InAppMessaging runtime with Installation ID YOUR_INSTALLATION_ID` in logcat (filter by "FIAM.Headless"). - **iOS:** Enable debug mode by adding `-FIRDebugEnabled` as a runtime argument in Xcode's scheme settings; find `[Firebase/InAppMessaging][I-IAM180017]` in Xcode console logs. --- ## 2. Message Triggering and Display Use Google Analytics events to trigger in-app messages without additional code. For programmatic triggering: ```dart FirebaseInAppMessaging.instance.triggerEvent("eventName"); ``` **Suppress messages during critical flows** (e.g., payment processing): ```dart FirebaseInAppMessaging.instance.setMessagesSuppressed(true); // Re-enable when appr...

Details

Author
evanca
Repository
evanca/flutter-ai-rules
Created
1 years ago
Last Updated
4 weeks ago
Language
N/A
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category