question

Jeetu Prasad avatar image
Jeetu Prasad asked

This is right way to call playfab api in android device ?

This is right way to call playfab api in android device, this line of code work perfectly in unity editor not work on android device code mentioned bellow


public void Start()    {        if (string.IsNullOrEmpty(PlayFabSettings.staticSettings.TitleId))        {            PlayFabSettings.staticSettings.TitleId = "E1093";        }        #if UNITY_ANDROID         var request = new LoginWithAndroidDeviceIDRequest { AndroidDeviceId = SystemInfo.deviceUniqueIdentifier, CreateAccount = true, };        PlayFabClientAPI.LoginWithAndroidDeviceID(request, OnLoginSuccess, OnLoginFailure);        print("Device UDI " + SystemInfo.deviceUniqueIdentifier);  #endif    }
Authentication
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.

Seth Du avatar image Seth Du ♦ commented ·

I don't see any issue. May I ask is there any error and what's the callback?

0 Likes 0 ·

0 Answers

·

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.