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

> Envoie une notification push iOS/Android à un utilisateur spécifique, si l'appareil de cet utilisateur a été configuré pour les notifications push dans PlayFab. Si un utilisateur a lié à la fois des appareils Android et iOS, les deux seront notifiés.

Envoie une notification push iOS/Android à un utilisateur spécifique, si l'appareil de cet utilisateur a été configuré pour les notifications push dans PlayFab. Si un utilisateur a lié à la fois des appareils Android et iOS, les deux seront notifiés.

## Syntaxe

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

### Paramètres

**`titleEntityHandle`**   PFEntityHandle

PFEntityHandle pour une entité de titre obtenue à l'aide de PFAuthenticationGetEntityWithSecretKeyAsync.

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

Objet de requête renseigné.

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

XAsyncBlock pour l'opération asynchrone.

### Valeur de retour

Type : HRESULT

Code de résultat de cette opération d'API.

## Notes

Cette API est disponible sur Windows, Linux et macOS. Appelez XAsyncGetStatus pour obtenir l'état de l'opération. Si l'appel au service échoue, le résultat asynchrone sera E\_PF\_PUSH\_NOT\_ENABLED\_FOR\_ACCOUNT, E\_PF\_PUSH\_SERVICE\_ERROR ou l'une des erreurs globales du service PlayFab. Consultez la page de documentation "Handling PlayFab Errors" pour plus de détails sur la gestion des erreurs.

## Configuration requise

**En-tête :** PFPushNotifications.h

## Voir aussi

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


## Related topics

- [Vue d'ensemble de l'API C Services - PFPushNotifications.h](/fr/services/playfab/api-references/c/pfpushnotifications/pfpushnotifications_members.md)
- [PFPushNotificationsServerSendPushNotificationFromTemplateAsync](/fr/services/playfab/api-references/c/pfpushnotifications/functions/pfpushnotificationsserversendpushnotificationfromtemplateasync.md)
- [PFPushNotificationsSendPushNotificationRequest](/fr/services/playfab/api-references/c/pfpushnotificationstypes/structs/pfpushnotificationssendpushnotificationrequest.md)
- [PFPushNotificationsSendPushNotificationFromTemplateRequest](/fr/services/playfab/api-references/c/pfpushnotificationstypes/structs/pfpushnotificationssendpushnotificationfromtemplaterequest.md)
- [PFPlatformSpecificClientRegisterForIOSPushNotificationAsync](/fr/services/playfab/api-references/c/pfplatformspecific/functions/pfplatformspecificclientregisterforiospushnotificationasync.md)
