I'm currently testing GameSparks with Unity and I love it.
I ran a little test where I do the following:
foreach player in a given list
- log in
- call a simple event that returns the userId, using the following cloud code:
var playerId = Spark.getPlayer().getPlayerId();
- compare with the userId returned upon login response
- logout (in fact I don't do anything to log out, I am assuming that the next login will invalidate the current authentication, but I might be wrong)
What I see is that those two are sometimes different, and I can't figure out why.
I ran the same test with TestHarness and I never get this problem.
Is there anything specific to know about login/logout in C# in Unity ?