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

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

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

## 構文

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

### パラメーター

**`entityHandle`**   PFEntityHandle

認証に使用する PFEntityHandle。

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

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

**`async`**   XAsyncBlock\*<br />*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)) を参照してください。プッシュ通知を構成して送信する手順については、[プッシュ通知のクイックスタート](/services/playfab/live-service-management/game-configuration/title-communications/push-notifications/quickstart) を参照してください。操作の状態を取得するには XAsyncGetStatus を呼び出します。サービス呼び出しが失敗した場合、非同期結果は E\_PF\_NO\_PUSH\_NOTIFICATION\_ARN\_FOR\_TITLE、E\_PF\_PUSH\_SERVICE\_ERROR、またはグローバル PlayFab サービス エラーのいずれかになります。エラー処理の詳細については、ドキュメント ページ「Handling PlayFab Errors」を参照してください。

## 要件

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

## 関連項目

[PFPlatformSpecific のメンバー](/services/playfab/api-references/c/pfplatformspecific/pfplatformspecific_members)


## Related topics

- [Services C API overview - PFPlatformSpecific.h](/ja-jp/services/playfab/api-references/c/pfplatformspecific/pfplatformspecific_members.md)
- [PFPlatformSpecificAndroidDevicePushNotificationRegistrationRequest](/ja-jp/services/playfab/api-references/c/pfplatformspecifictypes/structs/pfplatformspecificandroiddevicepushnotificationregistrationrequest.md)
- [PFPlatformSpecificClientRegisterForIOSPushNotificationAsync](/ja-jp/services/playfab/api-references/c/pfplatformspecific/functions/pfplatformspecificclientregisterforiospushnotificationasync.md)
- [Services C API overview - PFPlatformSpecificTypes.h](/ja-jp/services/playfab/api-references/c/pfplatformspecifictypes/pfplatformspecifictypes_members.md)
- [PushNotificationRegistration](/ja-jp/services/playfab/api-references/events/data-types/pushnotificationregistration.md)
