> ## 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-CN/services/playfab/api-references/c/pfpushnotificationstypes/pfpushnotificationstypes_members.md)
- [PFPushNotificationsSendPushNotificationRequest](/zh-CN/services/playfab/api-references/c/pfpushnotificationstypes/structs/pfpushnotificationssendpushnotificationrequest.md)
- [push_notification_sent](/zh-CN/services/playfab/api-references/events/TitleCommunications/push-notification-sent.md)
- [sent_push_notification](/zh-CN/services/playfab/api-references/events/TitleCommunications/sent-push-notification.md)
- [PFPushNotificationsSendPushNotificationFromTemplateRequest](/zh-CN/services/playfab/api-references/c/pfpushnotificationstypes/structs/pfpushnotificationssendpushnotificationfromtemplaterequest.md)
