Firebase 将于 5 月 14 日重返 Google I/O 大会!
立即报名。
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
Firebase In-App Messaging
plat_ios
plat_android
plat_flutter
通过符合情景的消息吸引活跃的应用用户
Firebase In-App Messaging可帮助您吸引应用的活跃用户,具体方法是向这些用户发送有针对性的
鼓励用户使用关键应用功能的情境消息。例如,您可以发送应用内消息来让用户订阅、观看视频、通过某个关卡或购买商品。您可以对消息进行自定义,使其显示为卡片、横幅、模态窗口或图片,并设置触发器,以使其在您的用户能够明显受益时显示。
使用Firebase In-App Messaging鼓励用户探索和发现:突出显示促销信息或优惠券
在电子商务应用中提供线索或提示,
在社交媒体应用中分享。
准备好开始了吗?选择平台:
iOS+
Android
Flutter
主要功能
发送相关的、有吸引力的消息 |
Firebase In-App Messaging 会在用户最需要时(即用户实际上
。在用户访问您的应用内商店时宣传您的大力度促销活动,而不是
在杂货店排队时当用户正在玩您的游戏时推荐超酷新关卡,而非在用户沉浸于观赏体育比赛时。
|
按目标设备或行为定位消息 |
Firebase In-App Messaging 支持 Analytics
和导入的细分
为您提供相关工具,以便您将消息传达给最需要的用户
。根据客户特征、用户的受众特征或过往行为发送消息。
|
创建灵活的自定义提醒 |
能够自定义您的消息style、外观、显示
触发器和内容,Firebase In-App Messaging可帮助您完成
从发送促销优惠到让用户更新
新版本
|
实现流程
|
关联您的应用 |
首先在 Firebase 控制台中将 Firebase 添加到您的应用中。
|
|
集成 SDK
|
通过 CocoaPods 或 Gradle 将 Firebase In-App Messaging SDK 添加到您的应用。
|
|
创建您的第一条消息 |
访问 Firebase 控制台以编写、自定义和定位您的第一条消息。
|
后续步骤
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-17。
[null,null,["最后更新时间 (UTC):2025-08-17。"],[],[],null,["Firebase In-App Messaging \nplat_ios plat_android plat_flutter \nEngage active app users with contextual messages. \nFirebase In-App Messaging helps you engage your app's active users by sending them targeted, contextual messages that encourage them to use key app features. For example, you could send an in-app message to get users to subscribe, watch a video, complete a level, or buy an item. You can customize messages as cards, banners, modals, or images, and set up triggers so that they appear exactly when they'd benefit your users most.\n\n\u003cbr /\u003e\n\nUse Firebase In-App Messaging to encourage exploration and discovery: highlight a sale or coupon\nin your ecommerce app, give clues or tips in your game, or prompt a like or\nshare in your social media app.\n\n\u003cbr /\u003e\n\nReady to get started? Choose your platform:\n\n[iOS+](/docs/in-app-messaging/get-started?platform=ios)\n[Android](/docs/in-app-messaging/get-started?platform=android)\n[Flutter](/docs/in-app-messaging/get-started?platform=flutter)\n\nKey capabilities\n\n|-----------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Send relevant, engaging messages | Firebase In-App Messaging sends messages when they're most needed: while users are actually in your app. Promote your big sale when users visit your in-app store, not while they're in line at the grocery store. Highlight that cool, new level when users play your game, not when they're sitting down to watch the big game. |\n| Target messages by audience or behavior | Firebase In-App Messaging works with [Analytics](/docs/analytics) and [imported segments](/docs/projects/import-segments) to give you tools to deliver messages to the users you'd most like to reach. Send messages based on client characteristics, users' demographics, or past behavior. |\n| Create flexible, custom alerts | With the ability to customize your messages' style, appearance, display triggers, and content all in a few clicks, Firebase In-App Messaging helps you do everything from sending promotional offers to getting users to update to a new version of your app. |\n\nImplementation path\n\n|---|---------------------------|--------------------------------------------------------------------------------|\n| | Connect your app | Start by adding Firebase to your app in the Firebase console. |\n| | Integrate the SDK | Add the Firebase In-App Messaging SDK to your app via CocoaPods or Gradle. |\n| | Create your first message | Visit the Firebase console to write, customize, and target your first message. |\n\nNext steps\n\n- See what you can do with Firebase In-App Messaging by reviewing typical [use cases](/docs/in-app-messaging/explore-use-cases).\n- Learn how to create [an in-app messaging campaign](/docs/in-app-messaging/compose-campaign).\n- Learn how to create [Firebase In-App Messaging experiments with A/B Testing](/docs/ab-testing/abtest-inappmessaging)."]]