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

> プッシュ通知を受信するように Android デバイスを登録します。

プッシュ通知を受信するように Android デバイスを登録します。

## 構文

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

### パラメーター

**`entityHandle`**   PFEntityHandle

認証に使用する PFEntityHandle。

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

値が設定されたリクエスト オブジェクト。

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

非同期操作用の XAsyncBlock。

### 戻り値

型: HRESULT

この API 操作の結果コード。

## 解説

この API は Android で利用できます。Google Cloud Messaging サービス用にゲームを構成する方法の詳細については、Google の開発者向けドキュメント ([http://developer.android.com/google/gcm/client.html](http://developer.android.com/google/gcm/client.html)) を参照してください。プッシュ通知を構成して送信する手順については、[プッシュ通知のクイックスタート](https://docs.xbox.com/ja-jp/services/playfab/live-service-management/game-configuration/title-communications/push-notifications/quickstart.md) を参照してください。操作の状態を取得するには XAsyncGetStatus を呼び出します。サービス呼び出しが失敗した場合、非同期結果は E\_PF\_NO\_PUSH\_NOTIFICATION\_ARN\_FOR\_TITLE、E\_PF\_PUSH\_SERVICE\_ERROR、またはグローバル PlayFab サービス エラーのいずれかになります。エラー処理の詳細については、ドキュメント ページ「Handling PlayFab Errors」を参照してください。

## 要件

**ヘッダー:** PFPlatformSpecific.h

## 関連項目

[PFPlatformSpecific のメンバー](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfplatformspecific/pfplatformspecific_members.md)


## Related topics

- [Services C API の概要 - PFPlatformSpecific.h](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfplatformspecific/pfplatformspecific_members.md)
- [PFPlatformSpecificAndroidDevicePushNotificationRegistrationRequest](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfplatformspecifictypes/structs/pfplatformspecificandroiddevicepushnotificationregistrationrequest.md)
- [PFPlatformSpecificClientRegisterForIOSPushNotificationAsync](https://docs.xbox.com/ja-jp/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)
- [Android デバイスのプッシュ通知の登録](https://docs.xbox.com/ja-jp/services/playfab/api-references/rest/client/platform-specific-methods/android-device-push-notification-registration.md)
