Firebase 将于 5 月 14 日重返 Google I/O 大会!
立即报名。
Firebase 應用程式內通訊有哪些用途?
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
透過 Firebase 控制台修改訊息樣式、指定目標和排程,以有意義的方式與目標對象互動。Firebase In-App Messaging 提供訊息範本,方便您實驗並自訂喜歡的內容。
自訂訊息 UI
您可以運用專為建立吸引人且簡潔使用者介面設計的範本,為訊息設定樣式。可用的範本如下:
訊息範本 |
說明 |
資訊卡 |
|
Modal |
- 彈性訊息對話方塊,含一個動作按鈕
- 只要提供訊息標題即可,請視需要使用
|
只有圖片 |
|
橫幅 |
|
進一步瞭解訊息範本
使用「僅限圖片」訊息範本,將設計好的訊息上傳至:
- 納入專為應用程式美學和品牌形象量身打造的確切顏色、字型和格式。
- 提供主題促銷活動。使用自訂的恐怖字型和背景圖案,在訊息中發送萬聖節折扣優惠。使用者可以點選整則訊息,進一步瞭解或關閉訊息。
想享有更多自由嗎?透過程式碼修改 Firebase 訊息範本的顯示方式。
瞭解詳情
指定特定使用者
您可以根據目標對象的行為、語言、參與度等條件,為每個廣告活動指定訊息目標對象。
建議將資訊卡訊息與 Firebase 動態連結結合,並將訊息的目標對象設定為:
- 指定「上次應用程式參與度」介於 1 到 7 天的使用者,確保他們處於活躍狀態。詢問參與度高的使用者是否喜歡您的應用程式。視他們的回答而定,深層連結至 Google Play 讓他們撰寫評論,或進行意見調查。
- 讓使用者在沒有註冊帳戶壓力的情況下探索社群媒體應用程式。將驗證訊息傳送給至少兩天前首次開啟應用程式的使用者。
瞭解詳情
根據情境觸發條件安排訊息傳送時間
訊息只會在使用者位於應用程式中時顯示,並由特定事件觸發,確保訊息與使用者相關且符合情境。您不希望打擾可能正在挑戰高分或進行重要交易的使用者。
舉例來說,您可以設定橫幅訊息的排程,以便:
- 在遊戲應用程式中,每當使用者升級時,您都可以設定
level_up
事件做為觸發條件,向使用者祝賀。
為橫幅訊息設定每個裝置的頻率限制,避免向使用者傳送垃圾訊息:
- 設定每 15 天最多傳送一則訊息,溫和提醒使用者更新應用程式。使用者可以輕鬆點選參與互動,或向上滑動螢幕關閉廣告。
瞭解詳情
追蹤應用程式成效
您可以結合 Firebase In-App Messaging 和 Google Analytics,瞭解使用者偏好和對應用程式的滿意度等重要詳細資料。
將 Analytics 事件設為轉換,並追蹤使用者與訊息的互動。例如:
- 使用模式範本的動作按鈕,提供折扣商品宣傳訊息。Firebase 會顯示收到訊息的使用者人數、點擊訊息的人數,以及完成轉換事件 (例如電子商務交易) 的人數。
運用回呼為使用者打造個人化體驗。
- 使用模式範本的彈性對話方塊方向,處理服務條款更新等重要且文字量大的訊息。追蹤同意服務條款的使用者,並使用回呼將使用者加入 Analytics 目標對象,以便更精確地指定目標。
瞭解詳情
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-17 (世界標準時間)。
[null,null,["上次更新時間:2025-08-17 (世界標準時間)。"],[],[],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 [Firebase Dynamic Links](/docs/dynamic-links), configuring the 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, deep link to Google Play for a review or survey their feedback.\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.\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)"]]