> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 推送通知

> 通过 PlayFab 推送通知提高玩家留存率：向 Android 和 iOS 设备发送无限量的自定义消息，以重新吸引玩家并减少流失。

推送通知为游戏提供了一个即时向玩家设备发送自定义消息的通道——即使玩家当前没有在运行游戏。

通知可用于指示用户已收到消息、游戏内有可用更新，或者用户需要采取某些操作。如果使用得当，它们可以成为一种非常有效的工具，通过在玩家流失前的关键时刻将其吸引回游戏来提高游戏留存率。

使用 PlayFab 的推送通知功能，开发者可以完全免费地向任意数量的设备发送无限量的推送通知。

以下屏幕截图是 Android 设备通知区域显示推送通知的示例。

<img src="https://mintcdn.com/microsoft-4404708b/3hg2JQs0m7qmDqay/images/playfab/live-service-management/game-configuration/title-communications/tutorials/android-notifications-screen.png?fit=max&auto=format&n=3hg2JQs0m7qmDqay&q=85&s=a0bd4c4172cd1f3ff51dd273f7ceee98" alt="Android 设备 - 通知屏幕" width="1280" height="800" data-path="images/playfab/live-service-management/game-configuration/title-communications/tutorials/android-notifications-screen.png" />

作为最佳实践，你应该预先告知玩家你将如何使用推送通知服务——包括通知将为玩家提供的价值，*然后*系统操作系统才会提示是否允许或禁止它们。

解释你的游戏如何通过推送通知进行奖励或沟通，可能会决定是构建社区参与还是驱走玩家。有关推送通知最佳实践的更多信息，请查阅[这篇博客文章](https://blog.playfab.com/blog/push-it-real-good-how-get-players-say-yes-push-notifications/)。


## Related topics

- [Android 推送通知](/zh-CN/services/playfab/live-service-management/game-configuration/title-communications/push-notifications/push-notifications-for-android.md)
- [iOS 推送通知](/zh-CN/services/playfab/live-service-management/game-configuration/title-communications/push-notifications/push-notifications-for-ios.md)
- [推送通知模板](/zh-CN/services/playfab/live-service-management/game-configuration/title-communications/push-notifications/push-notification-templates.md)
- [推送通知快速入门](/zh-CN/services/playfab/live-service-management/game-configuration/title-communications/push-notifications/quickstart.md)
- [sent_push_notification](/zh-CN/services/playfab/api-references/events/TitleCommunications/sent-push-notification.md)
