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

# PFPushNotificationsPushNotificationPackage

> PFPushNotificationsPushNotificationPackage 資料模型。

PFPushNotificationsPushNotificationPackage 資料模型。

## 語法

```cpp theme={null}
typedef struct PFPushNotificationsPushNotificationPackage {  
    int32_t badge;  
    const char* customData;  
    const char* icon;  
    const char* message;  
    const char* sound;  
    const char* title;  
} PFPushNotificationsPushNotificationPackage;  
```

### 成員

**`badge`**   int32\_t

要顯示在應用程式圖示上的數字徽章（僅限 iOS）。

**`customData`**   const char\*<br />*is null-terminated*

（選擇性）這必須是 JSON 格式的物件。用於開發人員建立的自訂推播通知外掛程式。

**`icon`**   const char\*<br />*is null-terminated*

（選擇性）要與訊息一起顯示的圖示檔案（iOS 不支援）。

**`message`**   const char\*<br />*is null-terminated*

訊息的內容（所有平台）。

**`sound`**   const char\*<br />*is null-terminated*

（選擇性）要與訊息一起播放的音效檔案（所有平台）。

**`title`**   const char\*<br />*is null-terminated*

訊息的標題／主旨。iOS 不支援。

## 需求

**標頭：** PFPushNotificationsTypes.h

## 另請參閱

[PFPushNotificationsTypes 成員](/services/playfab/api-references/c/pfpushnotificationstypes/pfpushnotificationstypes_members)


## Related topics

- [服務 C API 概觀 - PFPushNotificationsTypes.h](/zh-TW/services/playfab/api-references/c/pfpushnotificationstypes/pfpushnotificationstypes_members.md)
- [PFPushNotificationsSendPushNotificationRequest](/zh-TW/services/playfab/api-references/c/pfpushnotificationstypes/structs/pfpushnotificationssendpushnotificationrequest.md)
- [PFPushNotificationsSendPushNotificationFromTemplateRequest](/zh-TW/services/playfab/api-references/c/pfpushnotificationstypes/structs/pfpushnotificationssendpushnotificationfromtemplaterequest.md)
- [PFPushNotificationsServerSendPushNotificationAsync](/zh-TW/services/playfab/api-references/c/pfpushnotifications/functions/pfpushnotificationsserversendpushnotificationasync.md)
- [PFPushNotificationsAdvancedPushPlatformMsg](/zh-TW/services/playfab/api-references/c/pfpushnotificationstypes/structs/pfpushnotificationsadvancedpushplatformmsg.md)
