question

david-2 avatar image
david-2 asked

LoginWithCustomIDRequest failing on android

https://3da0.playfabapi.com/Client/LoginWithCustomID - getting 400 error and failure using your test code. any ideas?

1 comment
10 |1200

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

david-2 avatar image david-2 commented ·

Sorry 404 error, to be precise.

0 Likes 0 ·

1 Answer

·
brendan avatar image
brendan answered

I just tested LoginWithCustomID on Title ID 3DA0, and didn't have any issues - it created PlayFab ID 8ECB02A27D1D193C (feel free to delete it). Can you send us the complete set of parameters you're passing into the call, and the complete error response? How are you making the call, specifically?

1 comment
10 |1200

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

david-2 avatar image david-2 commented ·

Thanks for the answer Brendan. Seems the issue was due to an exception whereby networking can't be called on the main thread.

As a quick (probably not final) hack added this before the PlayFab call and then it worked:

StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();
StrictMode.setThreadPolicy(policy);
0 Likes 0 ·

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.