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

> Envía una plantilla de notificación push de iOS/Android a un usuario específico, si el dispositivo de ese usuario se ha configurado para notificaciones push en PlayFab. Si un usuario ha vinculado dispositivos Android e iOS, se notificará a ambos.

Envía una plantilla de notificación push de iOS/Android a un usuario específico, si el dispositivo de ese usuario se ha configurado para notificaciones push en PlayFab. Si un usuario ha vinculado dispositivos Android e iOS, se notificará a ambos.

## Sintaxis

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

### Parámetros

**`titleEntityHandle`**   PFEntityHandle

PFEntityHandle de una entidad de título obtenida mediante PFAuthenticationGetEntityWithSecretKeyAsync.

**`request`**   [PFPushNotificationsSendPushNotificationFromTemplateRequest\*](https://docs.xbox.com/es/services/playfab/api-references/c/pfpushnotificationstypes/structs/pfpushnotificationssendpushnotificationfromtemplaterequest.md)

Objeto de solicitud rellenado.

**`async`**   XAsyncBlock\*\
*Inout*

XAsyncBlock para la operación asincrónica.

### Valor devuelto

Tipo: HRESULT

Código de resultado de esta operación de API.

## Comentarios

Esta API está disponible en Windows, Linux y macOS. Llame a XAsyncGetStatus para obtener el estado de la operación. Si la llamada al servicio no se realiza correctamente, el resultado asincrónico será E\_PF\_PUSH\_NOT\_ENABLED\_FOR\_ACCOUNT, E\_PF\_PUSH\_NOTIFICATION\_TEMPLATE\_NOT\_FOUND, E\_PF\_PUSH\_SERVICE\_ERROR o cualquiera de los errores globales de PlayFab Service. Consulte la página de documentación "Handling PlayFab Errors" para obtener más detalles sobre el control de errores.

## Requisitos

**Encabezado:** PFPushNotifications.h

## Consulte también

[Miembros de PFPushNotifications](https://docs.xbox.com/es/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/es/services/playfab/api-references/c/pfpushnotificationstypes/structs/pfpushnotificationssendpushnotificationfromtemplaterequest.md)
- [PFPushNotificationsServerSendPushNotificationAsync](https://docs.xbox.com/es/services/playfab/api-references/c/pfpushnotifications/functions/pfpushnotificationsserversendpushnotificationasync.md)
- [PFAccountManagementServerSendEmailFromTemplateAsync](https://docs.xbox.com/es/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementserversendemailfromtemplateasync.md)
- [Información general de la API de C de Services - PFPushNotifications.h](https://docs.xbox.com/es/services/playfab/api-references/c/pfpushnotifications/pfpushnotifications_members.md)
