> ## 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.

# push_notification_sent

> push_notification_sent 事件。

向玩家发送推送通知时触发此事件。

## 属性

| 名称                           | 类型      | 描述           |
| :--------------------------- | :------ | :----------- |
| ErrorMessage                 | String  | 失败时发生的错误。    |
| PushNotificationTemplateId   | String  | 推送通知模板 ID。   |
| PushNotificationTemplateName | String  | 推送通知模板的友好名称。 |
| Success                      | Boolean | 推送通知是否发送成功。  |

## 常用属性

所有 V2 PlayStream 事件都格式化为 JSON 对象，其中大多数共享以下常用属性：

| 名称                 | 类型                                                                            | 描述                                        |
| :----------------- | :---------------------------------------------------------------------------- | :---------------------------------------- |
| SchemaVersion      | String                                                                        | PlayStream 事件格式版本，遵循语义化版本控制方案。            |
| FullName           | [Object](/services/playfab/api-references/events/data-types/fullnameobject)   | 事件名称与事件命名空间的组合，用于完整指定事件类型。                |
| Id                 | String                                                                        | PlayFab 为此事件分配的唯一标识符。                     |
| Timestamp          | DateTime                                                                      | 与此事件关联的时间（UTC）。                           |
| Entity             | [Object](/services/playfab/api-references/events/data-types/entityobject)     | 有关此事件适用的实体的详细信息，包括 Entity Id 和 Entity 类型。 |
| Originator         | [Object](/services/playfab/api-references/events/data-types/originatorobject) | 描述发起此事件的源和源类型的对象。                         |
| PayloadContentType | String                                                                        | 指定事件负载的内容。默认值为 "JSON"。                    |
| Origin Info        | Object                                                                        | 可选字段，包含有关源自 PlayFab 之外的事件的信息。             |


## Related topics

- [sent_push_notification](/zh-CN/services/playfab/api-references/events/TitleCommunications/sent-push-notification.md)
- [PlayFab 的 PlayStream 事件模型参考](/zh-CN/services/playfab/api-references/events/index.md)
- [PFPushNotificationsPushNotificationPackage](/zh-CN/services/playfab/api-references/c/pfpushnotificationstypes/structs/pfpushnotificationspushnotificationpackage.md)
- [PFPushNotificationsSendPushNotificationRequest](/zh-CN/services/playfab/api-references/c/pfpushnotificationstypes/structs/pfpushnotificationssendpushnotificationrequest.md)
- [PFPushNotificationsSendPushNotificationFromTemplateRequest](/zh-CN/services/playfab/api-references/c/pfpushnotificationstypes/structs/pfpushnotificationssendpushnotificationfromtemplaterequest.md)
