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

# PFPushNotificationsSendPushNotificationRequest

> PFPushNotificationsSendPushNotificationRequest 数据模型。

PFPushNotificationsSendPushNotificationRequest 数据模型。

## 语法

```cpp theme={null}
typedef struct PFPushNotificationsSendPushNotificationRequest {  
    PFPushNotificationsAdvancedPushPlatformMsg const* advancedPlatformDelivery;  
    uint32_t advancedPlatformDeliveryCount;  
    PFStringDictionaryEntry const* customTags;  
    uint32_t customTagsCount;  
    const char* message;  
    PFPushNotificationsPushNotificationPackage const* package;  
    const char* recipient;  
    const char* subject;  
    PFPushNotificationPlatform const* targetPlatforms;  
    uint32_t targetPlatformsCount;  
} PFPushNotificationsSendPushNotificationRequest;  
```

### 成员

**`advancedPlatformDelivery`**   [PFPushNotificationsAdvancedPushPlatformMsg](/services/playfab/api-references/c/pfpushnotificationstypes/structs/pfpushnotificationsadvancedpushplatformmsg) const\*<br />*may be nullptr*

（可选）允许你提供格式精确的 json 以定向到目标设备。这是一项高级功能，允许你传递到自定义插件逻辑、字段或 PlayFab 本身不支持的功能。

**`advancedPlatformDeliveryCount`**   uint32\_t

advancedPlatformDelivery 的计数

**`customTags`**   [PFStringDictionaryEntry](/services/playfab/api-references/c/pftypes/structs/pfstringdictionaryentry) const\*<br />*may be nullptr*

（可选）与请求关联的可选自定义标记（例如内部版本号、外部跟踪标识符等）。

**`customTagsCount`**   uint32\_t

customTags 的计数

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

（可选）要发送的消息的文本。

**`package`**   [PFPushNotificationsPushNotificationPackage](/services/playfab/api-references/c/pfpushnotificationstypes/structs/pfpushnotificationspushnotificationpackage) const\*<br />*may be nullptr*

（可选）定义所有可能的推送属性，如消息、标题、图标等。某些参数特定于设备 - 有关详细信息，请参阅 PushNotificationPackage 文档。

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

推送通知收件人的 PlayFabId。

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

（可选）要发送的消息的主题（可能不会在所有平台上显示）。

**`targetPlatforms`**   [PFPushNotificationPlatform](/services/playfab/api-references/c/pftypes/enums/pfpushnotificationplatform) const\*<br />*may be nullptr*

（可选）应接收消息或包的目标平台。如果省略，我们将发送到所有可用平台。

**`targetPlatformsCount`**   uint32\_t

targetPlatforms 的计数

## 要求

**头文件：** PFPushNotificationsTypes.h

## 另请参阅

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


## Related topics

- [PFPushNotificationsServerSendPushNotificationAsync](/zh-CN/services/playfab/api-references/c/pfpushnotifications/functions/pfpushnotificationsserversendpushnotificationasync.md)
- [服务 C API 概览 - PFPushNotificationsTypes.h](/zh-CN/services/playfab/api-references/c/pfpushnotificationstypes/pfpushnotificationstypes_members.md)
- [PFPushNotificationsSendPushNotificationFromTemplateRequest](/zh-CN/services/playfab/api-references/c/pfpushnotificationstypes/structs/pfpushnotificationssendpushnotificationfromtemplaterequest.md)
- [PFPushNotificationsServerSendPushNotificationFromTemplateAsync](/zh-CN/services/playfab/api-references/c/pfpushnotifications/functions/pfpushnotificationsserversendpushnotificationfromtemplateasync.md)
- [PFPushNotificationsPushNotificationPackage](/zh-CN/services/playfab/api-references/c/pfpushnotificationstypes/structs/pfpushnotificationspushnotificationpackage.md)
