question

amie avatar image
amie asked

LoginWithAndroidDeviceID Invalid Params

Hi, I'm using Unity and having trouble with LoginWithAndroidDeviceID. Code and errors below.

PlayFabSettings.TitleId = titleID;

LoginWithAndroidDeviceIDRequest androidID = new LoginWithAndroidDeviceIDRequest()

{

TitleId = titleID

};

PlayFabClientAPI.LoginWithAndroidDeviceID(androidID, (result) => {

playfabID = result.PlayFabId;

},

(error) => {

playFabInternetWarningBox.GetComponentInChildren<Text>().text = error.ErrorMessage +" " + error.ErrorDetails + " " + error.HttpCode;

playFabInternetWarningBox.SetActive(true);

});

error.ErrorMessage: Invalid input parameters

error.ErrorDetails: System.Collections.Generic.Dictionary`2[System.String,System.Collections.Generic.List`1[System.String]]

Any suggestions?

Cheers,

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

Unless you're using an encrypted request, you need to specify the AndroidDeviceId in the request - I'm not seeing any Device ID specified above.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.