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

# PFPlatformSpecificClientAndroidDevicePushNotificationRegistrationAsync

> Registers the Android device to receive push notifications

Registers the Android device to receive push notifications

## Syntax

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

### Parameters

**`entityHandle`**   PFEntityHandle

PFEntityHandle to use for authentication.

**`request`**   [PFPlatformSpecificAndroidDevicePushNotificationRegistrationRequest\*](https://docs.xbox.com/services/playfab/api-references/c/pfplatformspecifictypes/structs/pfplatformspecificandroiddevicepushnotificationregistrationrequest.md)

Populated request object.

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

XAsyncBlock for the async operation.

### Return value

Type: HRESULT

Result code for this API operation.

## Remarks

This API is available on Android. More information can be found on configuring your game for the Google Cloud Messaging service in the Google developer documentation, here: [http://developer.android.com/google/gcm/client.html](http://developer.android.com/google/gcm/client.html). The steps to configure and send Push Notifications is described in the PlayFab tutorials, here: [https://docs.microsoft.com/gaming/playfab/features/engagement/push-notifications/quickstart](https://docs.microsoft.com/gaming/playfab/features/engagement/push-notifications/quickstart). Call XAsyncGetStatus to get the status of the operation. If the service call is unsuccessful, the async result will be E\_PF\_NO\_PUSH\_NOTIFICATION\_ARN\_FOR\_TITLE, E\_PF\_PUSH\_SERVICE\_ERROR or any of the global PlayFab Service errors. See doc page "Handling PlayFab Errors" for more details on error handling.

## Requirements

**Header:** PFPlatformSpecific.h

## See also

[PFPlatformSpecific members](https://docs.xbox.com/services/playfab/api-references/c/pfplatformspecific/pfplatformspecific_members.md)


## Related topics

- [Services C API overview - PFPlatformSpecific.h](https://docs.xbox.com/services/playfab/api-references/c/pfplatformspecific/pfplatformspecific_members.md)
- [PFPlatformSpecificAndroidDevicePushNotificationRegistrationRequest](https://docs.xbox.com/services/playfab/api-references/c/pfplatformspecifictypes/structs/pfplatformspecificandroiddevicepushnotificationregistrationrequest.md)
- [PFPlatformSpecificClientRegisterForIOSPushNotificationAsync](https://docs.xbox.com/services/playfab/api-references/c/pfplatformspecific/functions/pfplatformspecificclientregisterforiospushnotificationasync.md)
- [Android Device Push Notification Registration](https://docs.xbox.com/api-reference/platform-specific-methods/android-device-push-notification-registration.md)
- [Services C API overview - PFPlatformSpecificTypes.h](https://docs.xbox.com/services/playfab/api-references/c/pfplatformspecifictypes/pfplatformspecifictypes_members.md)
