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

# ClientAndroidDevicePushNotificationRegistrationAsync

> Reference for PFPlatformSpecificClientAndroidDevicePushNotificationRegistrationAsync, a PlayFab C API function that registers an Android device for push.

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\*](/services/playfab/api-references/c/pfplatformspecifictypes/structs/pfplatformspecificandroiddevicepushnotificationregistrationrequest)

Populated request object.

**`async`**   XAsyncBlock\*<br />*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). For the steps to configure and send push notifications, see the [push notifications quickstart](/services/playfab/live-service-management/game-configuration/title-communications/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](/services/playfab/api-references/c/pfplatformspecific/pfplatformspecific_members)


## Related topics

- [AndroidDevicePushNotificationRegistrationRequest](/services/playfab/api-references/c/pfplatformspecifictypes/structs/pfplatformspecificandroiddevicepushnotificationregistrationrequest.md)
- [Push Notification for Android](/services/playfab/live-service-management/game-configuration/title-communications/push-notifications/push-notifications-for-android.md)
- [Services C API overview - PFPlatformSpecific.h](/services/playfab/api-references/c/pfplatformspecific/pfplatformspecific_members.md)
- [Getting Started with Android Studio and Push Notifications](/services/playfab/live-service-management/game-configuration/title-communications/push-notifications/getting-started-android-studio-push-notifications.md)
- [PFPushNotificationsServerSendPushNotificationAsync](/services/playfab/api-references/c/pfpushnotifications/functions/pfpushnotificationsserversendpushnotificationasync.md)
