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

# PFPlatformSpecificClientAndroidDevicePushNotificationRegistrationAsync

> Inscrit l'appareil Android pour recevoir des notifications push

Inscrit l'appareil Android pour recevoir des notifications push

## Syntaxe

```cpp theme={null}
HRESULT PFPlatformSpecificClientAndroidDevicePushNotificationRegistrationAsync(  
    PFEntityHandle entityHandle,  
    const PFPlatformSpecificAndroidDevicePushNotificationRegistrationRequest* request,  
    XAsyncBlock* async  
)  
```

### Paramètres

**`entityHandle`**   PFEntityHandle

PFEntityHandle à utiliser pour l'authentification.

**`request`**   [PFPlatformSpecificAndroidDevicePushNotificationRegistrationRequest\*](/services/playfab/api-references/c/pfplatformspecifictypes/structs/pfplatformspecificandroiddevicepushnotificationregistrationrequest)

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 Android. Vous trouverez plus d'informations sur la configuration de votre jeu pour le service Google Cloud Messaging dans la documentation pour développeurs de Google, ici : [http://developer.android.com/google/gcm/client.html](http://developer.android.com/google/gcm/client.html). Pour connaître les étapes de configuration et d'envoi des notifications push, consultez le [démarrage rapide des notifications push](/services/playfab/live-service-management/game-configuration/title-communications/push-notifications/quickstart). Appelez XAsyncGetStatus pour obtenir l'état de l'opération. Si l'appel de service échoue, le résultat asynchrone sera E\_PF\_NO\_PUSH\_NOTIFICATION\_ARN\_FOR\_TITLE, 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 :** PFPlatformSpecific.h

## Voir aussi

[Membres de PFPlatformSpecific](/services/playfab/api-references/c/pfplatformspecific/pfplatformspecific_members)


## Related topics

- [Vue d'ensemble de l'API C Services - PFPlatformSpecific.h](/fr-CA/services/playfab/api-references/c/pfplatformspecific/pfplatformspecific_members.md)
- [PFPlatformSpecificAndroidDevicePushNotificationRegistrationRequest](/fr-CA/services/playfab/api-references/c/pfplatformspecifictypes/structs/pfplatformspecificandroiddevicepushnotificationregistrationrequest.md)
- [PFPlatformSpecificClientRegisterForIOSPushNotificationAsync](/fr-CA/services/playfab/api-references/c/pfplatformspecific/functions/pfplatformspecificclientregisterforiospushnotificationasync.md)
- [Vue d'ensemble de l'API C Services - PFPlatformSpecificTypes.h](/fr-CA/services/playfab/api-references/c/pfplatformspecifictypes/pfplatformspecifictypes_members.md)
- [PFPlatformSpecificRegisterForIOSPushNotificationRequest](/fr-CA/services/playfab/api-references/c/pfplatformspecifictypes/structs/pfplatformspecificregisterforiospushnotificationrequest.md)
