Right now when I call the player to set an object on OnApplicationQuit() says I must be logged in Playfab to do that command. It seems it's logging out before OnApplicationQuit is called. is there anything that would do that in Playfab? I don't think anything in my code does that.
For reference here's an object I'm setting and what I'm calling in OnApplicationQuit.
PlayFabDataAPI.SetObjects(new SetObjectsRequest() { Entity = new EntityKey { Id = player.titleAccountId, Type = titleEntityType }, // Saved from GetEntityToken, or a specified key created from a titlePlayerId, CharacterId, etc Objects = dataList, }, (setResult) => { print("Setting online status to " + onlineStatus); }, DisplayPlayFabError);
public void OnApplicationQuit() { ChallengeController.Controller.CancelChallenge(player.titleAccountId); SetOnlineStatus(ConnectionStatus.Disconnected); }