[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-29。"],[],[],null,["\u003cbr /\u003e\n\nEngage your audience in meaningful ways with modifications to the style,\ntargeting, and scheduling of your messages entirely through the [Firebase\nconsole](https://console.firebase.google.com/project/_/messaging).\nFirebase In-App Messaging offers message templates for you to experiment with and customize to\nyour liking.\n\nCustomize your message UI\n\nYou can style your messages with templates that are designed for creating\nengaging and clean user interfaces. Here are the available templates:\n\n| Message Template | Description |\n|------------------|-------------------------------------------------------------------------------------------------------------|\n| **Card** | - Structured message with two action buttons - Offers users a choice |\n| **Modal** | - Flexible message dialog with one action button - Only the message title is required --- use what you need |\n| **Image only** | - Upload your custom designed message - Easy to incorporate your aesthetics |\n| **Banner** | - Notification-like message - Doesn't take up a lot of screen space |\n\n\u003cbr /\u003e\n\n[Learn more about messaging templates](/docs/in-app-messaging/compose-campaign#style-and-content)\n\nUse the **Image only** message template, uploading your designed message to:\n\n- Incorporate the exact colors, fonts, and formatting that are tailored to your app's aesthetic and branding.\n- Offer a themed promotion. Send out your Halloween discount in a message with a custom scary font and background pattern. The entire message is clickable for the user to learn more or dismiss the message.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nWant even more freedom? Modify the display of Firebase's message templates\nthrough code.\n\n[Learn more](/docs/in-app-messaging/customize-messages)\n\nTarget specific users\n\nFor each campaign, you can target messages to certain audiences based on their\nbehavior, language, engagement, and more.\n\nConsider combining a **Card** message with a deep linking solution, configuring\nthe targeting of the message to:\n\n- Target users with a **Last app engagement** between one to seven days to make sure they are active. Ask your engaged users if they are enjoying your app. Depending on their answer, use a smart link to direct them to Google Play for a review or to a feedback survey.\n- Let users explore your social media app without pressures to register for an account. Target your authentication message at users that **First Open** your app at least two days ago, and use an in-app linking system to guide them to the relevant screen.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n[Learn more](/docs/in-app-messaging/compose-campaign#target-your-users)\n\nSchedule messages with contextual triggers\n\nMessages only appear while users are in your app and are triggered by certain\nevents, ensuring that the messages stay relevant and contextual for your users.\nYou don't want to distract users who might be in the middle of a high-score-\nsetting game or an important purchase.\n\nFor instance, you can configure the scheduling of your **Banner** message to:\n\n- Congratulate users whenever they level up in your game app by setting a `level_up` event as a trigger.\n\nAvoid spamming your users by setting a per-device frequency limit for your\n**Banner** message to:\n\n- Gently remind users to update your app by setting the number of messages to no more than one message every 15 days. Users can easily click to engage or dismiss with a swipe up.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n[Learn more](/docs/in-app-messaging/compose-campaign#schedule-your-message)\n\nTrack your app's performance\n\nYou can combine Firebase In-App Messaging with [Google Analytics](/docs/analytics) to reveal\nimportant details about your users' preferences and satisfaction with your app.\n\nEnable Analytics events as conversions and track users' interactions with your\nmessages. For example:\n\n- Offer a promotional message with the **Modal** template's action button to discounted items. Firebase lets you know how many users received the message, how many clicked on it, and how many completed conversion event such as an e-commerce purchase.\n\nUtilize callbacks to create a personalized experience for your users.\n\n- Tackle important, text-heavy messages such as a terms of service update with the **Modal** template's flexible dialog orientation. Track which users consented to your terms of service and use callbacks to add users to an Analytics audience for better targeting.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n[Learn more](/docs/in-app-messaging/compose-campaign#conversion-events)"]]