Skip to main content
PFAuthenticationServerLoginWithAndroidDeviceIDRequest data model. On Android devices, the recommendation is to use the Settings.Secure.ANDROID_ID as the AndroidDeviceId, as described in this blog post (http://android-developers.blogspot.com/2011/03/identifying-app-installations.html). More information on this identifier can be found in the Android documentation (http://developer.android.com/reference/android/provider/Settings.Secure.html). If this is the first time a user has signed in with the Android device and CreateAccount is set to true, a new PlayFab account will be created and linked to the Android device ID. In this case, no email or username will be associated with the PlayFab account. Otherwise, if no PlayFab account is linked to the Android device, an error indicating this will be returned, so that the title can guide the user through creation of a PlayFab account. Please note that while multiple devices of this type can be linked to a single user account, only the one most recently used to login (or most recently linked) will be reflected in the user’s account information. We will be updating to show all linked devices in a future release.

Syntax

Members

androidDevice   const char*
is null-terminated
(Optional) Specific model of the user’s device. androidDeviceId   const char*
is null-terminated
Android device identifier for the user’s device. createAccount   bool Automatically create a PlayFab account if one is not currently linked to this ID. customTags   PFStringDictionaryEntry const*
may be nullptr
(Optional) The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). customTagsCount   uint32_t Count of customTags infoRequestParameters   PFGetPlayerCombinedInfoRequestParams const*
may be nullptr
(Optional) Flags for which pieces of info to return for the user. OS   const char*
is null-terminated
(Optional) Specific Operating System version for the user’s device.

Requirements

Header: PFAuthenticationTypes.h

See also

PFAuthenticationTypes members
Last modified on September 11, 2026