question

jorge8agomez avatar image
jorge8agomez asked

C# SDK not working on Android [Unity game]

Hello,

Currently I am using the C# SDK in a Unity project. Everything works well in the Editor but when I try to run the project in a real device I receive the following error

"Object reference not set to an instance of an object." when I try to use:

await PlayFabClientAPI.LoginWithCustomIDAsync(request);

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.

jorge8agomez avatar image jorge8agomez commented ·

This is the error that I get using the StackTrack

Failed at PlayFab.Json.PocoJsonSerializerStrategy.DeserializeObject

0 Likes 0 ·

1 Answer

·
Seth Du avatar image
Seth Du answered

I will try to reproduce this issue. However, may I ask what's the scenario that the Unity project requires C# SDK instead of Unity SDK. Both API calls are asychronous.

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.

jorge8agomez avatar image jorge8agomez commented ·
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.