firebase-in-app-messaging

Featured

Use when running in-app message campaigns, triggering/suppressing messages, configuring opt-in data collection, testing on specific devices, or handling message callbacks.

Testing & QA 619 stars 60 forks Updated today MIT

Install

View on GitHub

Quality Score: 95/100

Stars 20%
93
Recency 20%
100
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 implement Firebase In-App Messaging in Flutter applications, covering setup, programmatic triggers, privacy controls, testing workflows, and campaign management. ## 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 GDPR or user privacy compliance. * Testing campaigns with specific devices before rollout. * Configuring message types, targeting rules, and A/B tests. --- ## 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. ### Setup Checklist 1. Confirm `Firebase.initializeApp()` completes before accessing In-App Messaging. 2. Create a test campaign in the Firebase console to verify the integration. 3. Locate the Installation ID for device-specific testing (see Testing section). --- ## 2. Message Triggering and Display Use Google Analytics events to trigger in-app messages without additional code. For programmatic triggering: ```dart // Trigger a message tied to a custom event await FirebaseInAppMessaging.instance.triggerEvent("purchase_complete"); ``` ### Suppress Messages...

Details

Author
evanca
Repository
evanca/flutter-ai-rules
Created
1 years ago
Last Updated
today
Language
Shell
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category