question

Damien Yvray avatar image
Damien Yvray asked

LoginWithAndroidDeviceID not returning anything

Hi everyone.
I have a bug which is really puzzling me since yesterday.
At every step, I add a kind of debug ( logText.text), so I can see where it stops running.

The logText I see on my android is only "android login".

This doesn't make sense to me because that means taht LoginWithAndroidDeviceID doesnt shoot neither on success, nor on error.

Am I missing something?

Is there something I need to setup on Playfab dashboard?

Thanks for your help

void Login()
{

	logText.text += "android login\n";
	var androidRequest = new LoginWithAndroidDeviceIDRequest
	{
		AndroidDeviceId = ReturnAndroidId(),
		CreateAccount = true
	};

PlayFabClientAPI.LoginWithAndroidDeviceID(androidRequest, OnAndroidLoginSuccess, OnError);


}

void OnAndroidLoginSuccess(LoginResult result)
{
	logText.text += "android login success";
	logText.text += "\n";

        playerId = SystemInfo.deviceUniqueIdentifier;
}

void OnError(PlayFabError error)
{
        logText.text += error.GenerateErrorReport();
        logText.text += "\n";

}



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.

Damien Yvray avatar image Damien Yvray commented ·

Sorry, I forgot one part:

    public static string ReturnAndroidId()
    {
        string id = SystemInfo.deviceUniqueIdentifier;


        return id;
    }
0 Likes 0 ·

1 Answer

·
Rick Chen avatar image
Rick Chen answered

You don’t need to setup anything on Game Manager. I cannot reproduce this issue on Postman. Which Platform or Language are you using? If it’s Unity, I suggest following this document Debugging C# code in Unity and set the breakpoints in your code and find out exactly where the issue occurs.

2 comments
10 |1200

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

Damien Yvray avatar image Damien Yvray commented ·

Hey Rick thanks a lot for the answer!

To give you more details:

- I am coding in C# in unity

- The message is sent to Playfab servers ( I am sure of this because users are created)

- I don;t receive anything back from Playfab ( no request success, no request error)

- I don't have any bug on the console

0 Likes 0 ·
Rick Chen avatar image Rick Chen ♦ Damien Yvray commented ·

Since the user was created on the server and I cannot reproduce this issue on Postman, the cause of the issue could be narrow down to Unity code. However, the console may not be able to capture the issue, please follow the instruction Debugging C# code in Unity as suggested previously to troubleshoot the issue.

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.