> ## 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-TW/services/playfab/api-references/c/pfpushnotifications/functions/pfpushnotificationsserversendpushnotificationasync.md)
- [服務 C API 概觀 - PFPushNotificationsTypes.h](/zh-TW/services/playfab/api-references/c/pfpushnotificationstypes/pfpushnotificationstypes_members.md)
- [PFPushNotificationsSendPushNotificationFromTemplateRequest](/zh-TW/services/playfab/api-references/c/pfpushnotificationstypes/structs/pfpushnotificationssendpushnotificationfromtemplaterequest.md)
- [PFPushNotificationsServerSendPushNotificationFromTemplateAsync](/zh-TW/services/playfab/api-references/c/pfpushnotifications/functions/pfpushnotificationsserversendpushnotificationfromtemplateasync.md)
- [PFPlatformSpecificRegisterForIOSPushNotificationRequest](/zh-TW/services/playfab/api-references/c/pfplatformspecifictypes/structs/pfplatformspecificregisterforiospushnotificationrequest.md)
