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

# sent_push_notification

> sent_push_notification 事件。

當推播通知傳送給玩家或傳送失敗時，就會觸發此事件。

## 屬性

| 名稱 | 類型 | 描述 |
| :- | :- | :- |
| Body | String | 推播通知本文的內容，截斷為 4096 個字元。 |
| ErrorMessage | String | 推播通知傳送失敗時所發生的錯誤。 |
| ErrorName | String | 推播通知傳送失敗時所發生之錯誤的名稱。 |
| Language | String | 如果使用了相符的當地語系化範本，則為傳送推播通知時使用的語言。 |
| PushNotificationTemplateId | String | 嘗試傳送推播通知期間的推播通知範本識別碼。 |
| PushNotificationTemplateName | String | 嘗試傳送推播通知期間的推播通知範本名稱。 |
| Subject | String | 推播通知主旨的內容，截斷為 1024 個字元。 |
| Success | Boolean | 指出推播通知是否已成功傳送。 |
| TitleId | String | 此玩家事件所套用之遊戲的識別碼。 |

## 通用屬性

所有 V1 PlayStream 事件都會格式化為 JSON 物件，並共用下列通用屬性：

| 名稱 | 類型 | 描述 |
| :- | :- | :- |
| EntityId | String | 此事件所套用之實體 (遊戲、玩家等) 的識別碼。 |
| EntityType | String | 此事件所套用之實體 (玩家、遊戲等) 的類型。如果 PlayFab 要對此實體採取動作，則 EntityType 必須是 'player'、'character' 或 'title'。PlayFab 目前不會剖析的任何實體類型，都必須在前面加上命名空間 (例如 'com.mygame.guild')，因為 PlayFab 可能隨時開始剖析根實體。 |
| EventId | String | PlayFab 為此事件指派的唯一識別碼。 |
| EventName | String | 此事件的名稱。 |
| EventNamespace | String | 為此事件指派的命名空間。例如：'com.myprogram.ads' |
| Source | String | 此 PlayStream 事件的來源名稱；如果事件源自我們，則為 PlayFab。 |
| SourceType | [SourceType](/zh-TW/services/playfab/api-references/events/data-types/sourcetype) | 此事件的來源類型 (PlayFab 合作夥伴、其他後端，或來自 PlayFab API)。 |
| Timestamp | DateTime | 與此事件相關聯的時間 (UTC)。 |


## Related topics

- [push_notification_sent](/zh-TW/services/playfab/api-references/events/TitleCommunications/push-notification-sent.md)
- [PlayStream 事件模型參考](/zh-TW/services/playfab/api-references/events/index.md)
- [PFPushNotificationsPushNotificationPackage](/zh-TW/services/playfab/api-references/c/pfpushnotificationstypes/structs/pfpushnotificationspushnotificationpackage.md)
- [Send Push Notification](/api-reference/account-management/send-push-notification.md)
- [PFPushNotificationsSendPushNotificationRequest](/zh-TW/services/playfab/api-references/c/pfpushnotificationstypes/structs/pfpushnotificationssendpushnotificationrequest.md)
