question

Cruiser dev team avatar image
Cruiser dev team asked

Shadow Android account created for each PC user

I develop on PC/Unity Editor. I also configured the Google login plugin used for IAP.

The login goes as follows:

 var request = new LoginWithCustomIDRequest { 
             CustomId = login, 
             CreateAccount = true, 
             InfoRequestParameters = new GetPlayerCombinedInfoRequestParams() 
             {
                 GetUserAccountInfo = true,
                 GetUserVirtualCurrency = true
             }
         };
         PlayFabClientAPI.LoginWithCustomID(request, onSuccess, onFailure);

What happens now is that Unity Editor login makes 2 different accounts for some reason. It reads from the first one at the start, but any User Title Data updates go to another one. Is this expected? Did it happen due to the IAP configuration for mobile?

6036-image.png

Authentication
image.png (132.8 KiB)
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

·
Neils Shi avatar image
Neils Shi answered

The IAP do not result in the creation of a new Android account, you may need to double-check your login code and check if you call the API LoginWithAndroidDeviceID. You could add some break point and debug your code to see which step the issue happens on.

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.