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

# PFPushNotificationsServerSendPushNotificationAsync

> Envia uma Notificação por Push do iOS/Android para um usuário específico, se o dispositivo desse usuário tiver sido configurado para Notificações por Push no PlayFab. Se um usuário tiver vinculado dispositivos Android e iOS, ambos serão notificados.

Envia uma Notificação por Push do iOS/Android para um usuário específico, se o dispositivo desse usuário tiver sido configurado para Notificações por Push no PlayFab. Se um usuário tiver vinculado dispositivos Android e iOS, ambos serão notificados.

## Sintaxe

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

### Parâmetros

**`titleEntityHandle`**   PFEntityHandle

PFEntityHandle para uma Entidade de título obtida usando PFAuthenticationGetEntityWithSecretKeyAsync.

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

Objeto de solicitação preenchido.

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

XAsyncBlock para a operação assíncrona.

### Valor de retorno

Tipo: HRESULT

Código de resultado desta operação de API.

## Comentários

Esta API está disponível no Windows, Linux e macOS. Chame XAsyncGetStatus para obter o status da operação. Se a chamada de serviço não for bem-sucedida, o resultado assíncrono será E\_PF\_PUSH\_NOT\_ENABLED\_FOR\_ACCOUNT, E\_PF\_PUSH\_SERVICE\_ERROR ou qualquer um dos erros globais do Serviço PlayFab. Consulte a página de documentação "Handling PlayFab Errors" para obter mais detalhes sobre o tratamento de erros.

## Requisitos

**Cabeçalho:** PFPushNotifications.h

## Confira também

[Membros de PFPushNotifications](/services/playfab/api-references/c/pfpushnotifications/pfpushnotifications_members)


## Related topics

- [Visão geral da API C do Services - PFPushNotifications.h](/pt-BR/services/playfab/api-references/c/pfpushnotifications/pfpushnotifications_members.md)
- [PFPushNotificationsServerSendPushNotificationFromTemplateAsync](/pt-BR/services/playfab/api-references/c/pfpushnotifications/functions/pfpushnotificationsserversendpushnotificationfromtemplateasync.md)
- [PFPushNotificationsSendPushNotificationRequest](/pt-BR/services/playfab/api-references/c/pfpushnotificationstypes/structs/pfpushnotificationssendpushnotificationrequest.md)
- [PFPushNotificationsSendPushNotificationFromTemplateRequest](/pt-BR/services/playfab/api-references/c/pfpushnotificationstypes/structs/pfpushnotificationssendpushnotificationfromtemplaterequest.md)
- [PFPlatformSpecificClientRegisterForIOSPushNotificationAsync](/pt-BR/services/playfab/api-references/c/pfplatformspecific/functions/pfplatformspecificclientregisterforiospushnotificationasync.md)
