Hello,
We are trying to send some additional info with user score like below:
App42API.SetDbName(CloudLoginManager.Instance.DB_NAME); scoreBoardService.AddJSONObject(CloudLoginManager.Instance.ADDITIONAL_COLLECTION_NAME,CloudLoginManager.Instance.JsonDoc);
scoreBoardService.SaveUserScore(TROPHY_LEADERBOARD_NAME, CloudLoginManager.Instance.UserName,trophyCount,new SaveUserTrophyCallBack());
But when we try to fetch the data, GetJSonDataList() method returns zero length.
Public void GetTrophyTopNRankings(){scoreBoardService.GetTopNRankings(TROPHY_LEADERBOARD_NAME,200,new GetTrophyTopNRankingsCallBack());}
Here is the callback method:
public void OnSuccess(object response){
Game game=(Game)response;
CloudLeaderboardManager.Instance.TrophyTopNRankingList=game.GetScoreList();
Debug.Log(game.GetScoreList()[0].GetJsonDocList().Count);
}
Thanks for your help,
Emre