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

> Registra o dispositivo Android para receber notificações por push

Registra o dispositivo Android para receber notificações por push

## Sintaxe

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

### Parâmetros

**`entityHandle`**   PFEntityHandle

PFEntityHandle a ser usado para autenticação.

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

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 Android. Mais informações sobre como configurar seu jogo para o serviço Google Cloud Messaging podem ser encontradas na documentação para desenvolvedores do Google, aqui: [http://developer.android.com/google/gcm/client.html](http://developer.android.com/google/gcm/client.html). Para conhecer as etapas de configuração e envio de notificações por push, consulte o [início rápido de notificações por push](/services/playfab/live-service-management/game-configuration/title-communications/push-notifications/quickstart). 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\_NO\_PUSH\_NOTIFICATION\_ARN\_FOR\_TITLE, 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:** PFPlatformSpecific.h

## Confira também

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


## Related topics

- [Visão geral da API C do Services - PFPlatformSpecific.h](/pt-BR/services/playfab/api-references/c/pfplatformspecific/pfplatformspecific_members.md)
- [PFPlatformSpecificAndroidDevicePushNotificationRegistrationRequest](/pt-BR/services/playfab/api-references/c/pfplatformspecifictypes/structs/pfplatformspecificandroiddevicepushnotificationregistrationrequest.md)
- [PFPlatformSpecificClientRegisterForIOSPushNotificationAsync](/pt-BR/services/playfab/api-references/c/pfplatformspecific/functions/pfplatformspecificclientregisterforiospushnotificationasync.md)
- [Visão geral da API C do Services - PFPlatformSpecificTypes.h](/pt-BR/services/playfab/api-references/c/pfplatformspecifictypes/pfplatformspecifictypes_members.md)
- [PFPlatformSpecificRegisterForIOSPushNotificationRequest](/pt-BR/services/playfab/api-references/c/pfplatformspecifictypes/structs/pfplatformspecificregisterforiospushnotificationrequest.md)
