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

# PFAuthenticationServerLoginWithAndroidDeviceIDAsync

> Android 디바이스 식별자를 사용하여 사용자를 로그인하고, 이후 인증된 사용자가 필요한 API 호출에 사용할 수 있는 세션 식별자를 반환합니다.

Android 디바이스 식별자를 사용하여 사용자를 로그인하고, 이후 인증된 사용자가 필요한 API 호출에 사용할 수 있는 세션 식별자를 반환합니다.

## 구문

```cpp theme={null}
HRESULT PFAuthenticationServerLoginWithAndroidDeviceIDAsync(  
    PFServiceConfigHandle serviceConfigHandle,  
    const char* secretKey,  
    const PFAuthenticationServerLoginWithAndroidDeviceIDRequest* request,  
    XAsyncBlock* async  
)  
```

### 매개 변수

**`serviceConfigHandle`**   PFServiceConfigHandle

PFServiceConfigCreateHandle 호출에서 반환된 PFServiceConfigHandle입니다.

**`secretKey`**   char\*<br />*In\_z*

서비스 요청을 인증하는 데 사용되는 타이틀 비밀 키입니다.

**`request`**   [PFAuthenticationServerLoginWithAndroidDeviceIDRequest\*](/ko/services/playfab/api-references/c/pfauthenticationtypes/structs/pfauthenticationserverloginwithandroiddeviceidrequest)

값이 채워진 요청 객체입니다.

**`async`**   XAsyncBlock\*<br />*Inout*

비동기 작업을 위한 XAsyncBlock입니다.

### 반환 값

형식: HRESULT

이 API 작업의 결과 코드입니다.

## 설명

이 API는 Windows에서 사용할 수 있습니다. Android 디바이스에서는 이 블로그 게시물([http://android-developers.blogspot.com/2011/03/identifying-app-installations.html](http://android-developers.blogspot.com/2011/03/identifying-app-installations.html))에 설명된 대로 Settings.Secure.ANDROID\_ID를 AndroidDeviceId로 사용하는 것이 좋습니다. 이 식별자에 대한 자세한 내용은 Android 설명서([http://developer.android.com/reference/android/provider/Settings.Secure.html](http://developer.android.com/reference/android/provider/Settings.Secure.html))에서 확인할 수 있습니다. 사용자가 Android 디바이스로 처음 로그인하고 CreateAccount가 true로 설정된 경우, 새 PlayFab 계정이 만들어지고 Android 디바이스 ID에 연결됩니다. 이 경우 PlayFab 계정에는 이메일이나 사용자 이름이 연결되지 않습니다. 그렇지 않고 Android 디바이스에 연결된 PlayFab 계정이 없는 경우, 이를 나타내는 오류가 반환되므로 타이틀은 사용자에게 PlayFab 계정 생성을 안내할 수 있습니다. 이 유형의 디바이스 여러 대를 단일 사용자 계정에 연결할 수 있지만, 가장 최근에 로그인에 사용된(또는 가장 최근에 연결된) 디바이스만 사용자의 계정 정보에 반영됩니다. 향후 릴리스에서는 연결된 모든 디바이스가 표시되도록 업데이트할 예정입니다. 비동기 작업이 완료되면 [PFAuthenticationServerLoginWithAndroidDeviceIDGetResult](/ko/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithandroiddeviceidgetresult)를 호출하여 결과를 가져오세요.

## 요구 사항

**헤더:** PFAuthentication.h

## 참고 항목

[PFAuthentication 멤버](/ko/services/playfab/api-references/c/pfauthentication/pfauthentication_members)


## Related topics

- [PFAuthenticationServerLoginWithAndroidDeviceIDGetResultSize](/ko/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithandroiddeviceidgetresultsize.md)
- [PFAuthenticationServerLoginWithAndroidDeviceIDGetResult](/ko/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithandroiddeviceidgetresult.md)
- [PFAuthenticationServerLoginWithAndroidDeviceIDRequest](/ko/services/playfab/api-references/c/pfauthenticationtypes/structs/pfauthenticationserverloginwithandroiddeviceidrequest.md)
- [PFAuthenticationServerLoginWithIOSDeviceIDAsync](/ko/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithiosdeviceidasync.md)
- [PFAuthenticationServerLoginWithIOSDeviceIDGetResult](/ko/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithiosdeviceidgetresult.md)
