> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ServerSendPushNotificationFromTemplateAsync

> 사용자의 디바이스가 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\*](https://docs.xbox.com/ko/services/playfab/api-references/c/pfpushnotificationstypes/structs/pfpushnotificationssendpushnotificationfromtemplaterequest.md)

값이 채워진 요청 개체입니다.

**`async`**   XAsyncBlock\*\
*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 멤버](https://docs.xbox.com/ko/services/playfab/api-references/c/pfpushnotifications/pfpushnotifications_members.md)


## Related topics

- [Send Push Notification From Template](https://docs.xbox.com/api-reference/account-management/send-push-notification-from-template.md)
- [PFPushNotificationsSendPushNotificationFromTemplateRequest](https://docs.xbox.com/ko/services/playfab/api-references/c/pfpushnotificationstypes/structs/pfpushnotificationssendpushnotificationfromtemplaterequest.md)
- [PFPushNotificationsServerSendPushNotificationAsync](https://docs.xbox.com/ko/services/playfab/api-references/c/pfpushnotifications/functions/pfpushnotificationsserversendpushnotificationasync.md)
- [PFAccountManagementServerSendEmailFromTemplateAsync](https://docs.xbox.com/ko/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementserversendemailfromtemplateasync.md)
- [Send Push Notification](https://docs.xbox.com/api-reference/account-management/send-push-notification.md)
