5 月 14 日開催の Google I/O で Firebase の最新情報をお届けします。
今すぐご登録ください。
Firebase In-App Messaging でできること
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
Firebase コンソールでメッセージのスタイル、ターゲット、スケジュールを変更することで、効果的な方法でユーザーに働きかけることができます。Firebase In-App Messaging にはテスト用のメッセージ テンプレートが用意されています。このテンプレートは自由にカスタマイズできます。
メッセージ UI をカスタマイズする
魅力的でわかりやすいユーザー インターフェースを作成するためのテンプレートが用意されています。このテンプレートを使用して、メッセージのスタイルを設定できます。利用可能なテンプレートは次のとおりです。
メッセージ テンプレート |
説明 |
カード |
- 2 つの操作ボタンがある構造化メッセージ
- ユーザーに選択肢を提示できます。
|
モーダル |
- 1 つの操作ボタンがある柔軟なメッセージ ダイアログ
- メッセージのタイトルのみ必須です。残りは自由に使用できます。
|
画像のみ |
- 独自のデザインのメッセージをアップロードします。
- 魅力的なデザインを簡単に組み込むことができます。
|
バナー |
- 通知などのメッセージ
- 画面で大きなスペースを必要としません。
|
メッセージ テンプレートの詳細
画像のみのメッセージ テンプレートの場合、デザインしたメッセージをアップロードして、次のことを行うことができます。
- アプリの見た目やブランディングに合わせて、正確な色、フォント、書式を設定する。
- テーマに沿ったプロモーションを提供する。たとえば、ハロウィーンのキャンペーン メッセージの場合は、怖さを感じるカスタム フォントと背景パターンを使用します。ユーザーが画面に表示される情報量を調整できるように、メッセージ全体をクリック可能な状態にします。
さらにカスタマイズが必要な場合は、コードを作成して Firebase メッセージ テンプレートの表示を変更します。
詳細
特定のユーザーをターゲットにする
キャンペーンごとに、ユーザーの行動、言語、エンゲージメントなどに合わせて特定のオーディエンスにのみメッセージを送信できます。
カード メッセージと Firebase Dynamic Links を組み合わせて、メッセージのターゲットを次のように構成します。
- 前回のアプリ エンゲージメントが 1〜7 日のユーザーを引き留めるためターゲットに設定する。アプリに関心のあるユーザーにアプリの評価を尋ねます。その回答に応じて、フィードバックのレビューや送信ができるように Google Play へのディープリンクを使用します。
- ユーザーがアカウントに登録することなく、ソーシャル メディアアプリを利用できるようにする。アプリの初回起動から 2 日以上経過しているユーザーを認証メッセージのターゲットに設定します。
詳細
コンテキスト トリガーを使用してメッセージをスケジューリングする
メッセージは、ユーザーがアプリを使用している間のみ表示され、特定のイベントによってトリガーされます。これにより、関連のあるユーザーとコンテキストでのみメッセージを表示できます。ハイスコアを更新中のユーザーや重要な購入を行っているユーザーの邪魔にならないようにしましょう。
たとえば、バナー メッセージのスケジュールは次のように構成します。
level_up
イベントをトリガーとして設定し、ユーザーがゲームアプリのレベルをクリアするたびに祝福のメッセージを表示する。
次のように、バナー メッセージにデバイスごとの頻度制限を設定することで、迷惑メールの判定を避けることができます。
- 15 日に 1 件の割合でメッセージを送信するように設定し、ユーザーにアプリの更新を促します。ユーザーがクリックするだけで承諾できるようにします。また、上にスワイプするだけで消去できるようにします。
詳細
アプリのパフォーマンスを追跡する
Firebase In-App Messaging を Google アナリティクスと組み合わせることで、ユーザーの好みやアプリの満足度について詳しい情報を得ることができます。
アナリティクス イベントをコンバージョンとして有効にし、ユーザーのメッセージ操作をトラッキングします。例:
- モーダル テンプレートを使用して、割引対象アイテムに操作ボタンを設定し、プロモーション メッセージを送信します。Firebase では、メッセージを受信したユーザーの数、クリックしたユーザーの数、e コマースの購入などが完了コンバージョンのイベント数を確認できます。
コールバックを使用して、ユーザーに合わせてカスタマイズされたエクスペリエンスを作成します。
- 利用規約の更新など、文字数の多い重要なテキスト メッセージには、ダイアログの向きを変更できるモーダル テンプレートを使用します。利用規約に同意したユーザーを追跡し、コールバックを使用してアナリティクスのユーザーリストにユーザーを追加します。
詳細
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-08-17 UTC。
[null,null,["最終更新日 2025-08-17 UTC。"],[],[],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)"]]