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

# PFPushNotificationsServerSendPushNotificationFromTemplateAsync

> ユーザーのデバイスが PlayFab でプッシュ通知を受信するように構成されている場合、その特定のユーザーに iOS/Android プッシュ通知テンプレートを送信します。ユーザーが Android と iOS の両方のデバイスをリンクしている場合、両方に通知が送信されます。

ユーザーのデバイスが PlayFab でプッシュ通知を受信するように構成されている場合、その特定のユーザーに iOS/Android プッシュ通知テンプレートを送信します。ユーザーが Android と iOS の両方のデバイスをリンクしている場合、両方に通知が送信されます。

## 構文

```cpp theme={null}
HRESULT PFPushNotificationsServerSendPushNotificationFromTemplateAsync(  
    PFEntityHandle titleEntityHandle,  
    const PFPushNotificationsSendPushNotificationFromTemplateRequest* request,  
    XAsyncBlock* async  
)  
```

### パラメーター

**`titleEntityHandle`**   PFEntityHandle

PFAuthenticationGetEntityWithSecretKeyAsync を使用して取得したタイトル エンティティの PFEntityHandle。

**`request`**   [PFPushNotificationsSendPushNotificationFromTemplateRequest\*](/services/playfab/api-references/c/pfpushnotificationstypes/structs/pfpushnotificationssendpushnotificationfromtemplaterequest)

値が設定されたリクエスト オブジェクト。

**`async`**   XAsyncBlock\*<br />*Inout*

非同期操作用の XAsyncBlock。

### 戻り値

型: HRESULT

この API 操作の結果コード。

## 解説

この API は Windows、Linux、macOS で利用できます。操作の状態を取得するには XAsyncGetStatus を呼び出します。サービス呼び出しが失敗した場合、非同期結果は E\_PF\_PUSH\_NOT\_ENABLED\_FOR\_ACCOUNT、E\_PF\_PUSH\_NOTIFICATION\_TEMPLATE\_NOT\_FOUND、E\_PF\_PUSH\_SERVICE\_ERROR、またはグローバル PlayFab サービス エラーのいずれかになります。エラー処理の詳細については、ドキュメント ページ「Handling PlayFab Errors」を参照してください。

## 要件

**ヘッダー:** PFPushNotifications.h

## 関連項目

[PFPushNotifications のメンバー](/services/playfab/api-references/c/pfpushnotifications/pfpushnotifications_members)


## Related topics

- [Services C API overview - PFPushNotifications.h](/ja-jp/services/playfab/api-references/c/pfpushnotifications/pfpushnotifications_members.md)
- [PFPushNotificationsSendPushNotificationFromTemplateRequest](/ja-jp/services/playfab/api-references/c/pfpushnotificationstypes/structs/pfpushnotificationssendpushnotificationfromtemplaterequest.md)
- [PFPushNotificationsServerSendPushNotificationAsync](/ja-jp/services/playfab/api-references/c/pfpushnotifications/functions/pfpushnotificationsserversendpushnotificationasync.md)
- [PFPushNotificationsSendPushNotificationRequest](/ja-jp/services/playfab/api-references/c/pfpushnotificationstypes/structs/pfpushnotificationssendpushnotificationrequest.md)
- [PFPlatformSpecificClientRegisterForIOSPushNotificationAsync](/ja-jp/services/playfab/api-references/c/pfplatformspecific/functions/pfplatformspecificclientregisterforiospushnotificationasync.md)
