#Cant see the leaderboard data on mobile device.
1 messages · Page 1 of 1 (latest)
This is Unity editor
This is demo on android
And this is in-game on android
in adb logcat those are the logs
but in here it seems there are 2 scores
Please note showing up scores on leaderboard depends on the player's profile visibility.
If its already public for all players who submitted their scores, most likely it can be propagration time.
yes both of the profiles public for all players
one of two player is shown on the leaderboard now and the other one will be shown here after a while i guess, right?
I have a question if players profile visibility is private then no one seems that player right? so would this scenario happen on the leaderboard -> 1st has profile and score, 2nd has no profile and score, 3rd has profile and score etc.
If that would be happen, I think it will be weird
Like then the ranking system seems to be broken, does this scenario happen or something else?
Also (for trying cloud services) i got APK build with development console and when i select other google play account to sign in, it seems it signs in because on the top the sign-in animation works, but when i click leaderboard button it says 'Failed loading top scores 4 : SIGN_IN_REQUIRED' on the development console. However when i use another google play account it works well
I have just one offline data, on the other hand there are separate data files for each google play account but when i try 2 different account it seems they have the same data, it's like they're using the offline data and the cloud data doesnt retrieve. Maybe somehow cloud data will be overwrited.
this is where the error appears in my leaderboard method ->
if (error != null) { Debug.LogError("Failed loading top scores: " + error.Description); }
Also (for trying cloud services) i got APK build with development console and when i select other google play account to sign in, it seems it signs in because on the top the sign-in animation works, but when i click leaderboard button it says 'Failed loading top scores 4 : SIGN_IN_REQUIRED' on the development console. However when i use another google play account it works well
If you use another account and its working, most likely its issue with google play games cache. Try on another device to cross check. Or use a dedicated test account.
Hi, when i play the game on my android device and make some progress, i applied this -> hold on game icon -> app info -> clear data -> clear all data and then uninstalled it. After that i re-install the game and sign in to game with the same account but it seems data is not sync with the cloud one. Here's the scripts ->
GameDataManager -> https://paste.ofcode.org/Y6xf57gjhJ5eCXz5QhbQ8J
CloudSaveManager -> https://paste.ofcode.org/Z57imKGi9StuFQ5JVKe5V4
those are the adb logs of game from start to finish
06-14 05:51:46.794 11496 13554 I Unity : Synchronize: False
06-14 05:51:46.820 11496 13554 I Unity : Saving player data...
06-14 05:51:46.821 11496 13554 I Unity : All player data saved locally.
06-14 05:51:46.846 11496 13554 I Unity : [CloudSaveManager] SaveAll called. Saving all player data to cloud.
06-14 05:51:46.852 11496 13554 I Unity : [CloudSaveManager] Data keys set:
06-14 05:51:46.852 11496 13554 I Unity : _commonDataKey: a_8806731013233523690_CommonPlayerData
06-14 05:51:46.852 11496 13554 I Unity : _trDataKey: a_8806731013233523690_PlayerDataTr
06-14 05:51:46.852 11496 13554 I Unity : _enDataKey: a_8806731013233523690_PlayerDataEn
06-14 05:51:46.863 11496 13554 I Unity : [GameDataManager] Returning all player data.
06-14 05:51:46.870 11496 13554 I Unity : [CloudSaveManager] Saved data to cloud for key: a_8806731013233523690_CommonPlayerData
06-14 05:51:46.870 11496 13554 I Unity : JSON: {"dataVersion":1,"dataReset":false,"greyHint":100,"orangeHint":100,"greenHint":100,"selectedCharIndex":1,"selectedLanguageIndex":0,"maxAdsPerDay":3,"cooldownDuration":1,"watchedAds":0,"lastAdWatchDate":"20250614","lastAdWatchTicks":638854634970346340,"lastUpdatedTicks":638854663068203520}
06-14 05:51:46.871 11496 13554 I Unity : [CloudSaveManager] Saved data to cloud for key: a_8806731013233523690_PlayerDataTr
06-14 05:51:46.871 11496 13554 I Unity : JSON: {"dataVersion":1,"currentStreak":0,"bestStreak":0,"currentScore":0,"totalScore":0,"foundWords":0,"notFoundWords":0,"bestWords":0,"totalGuesses":0,"usedHint":0,"lastUpdatedTicks":638854663068203520}
06-14 05:51:46.872 11496 13554 I Unity : [CloudSaveManager] Saved data to cloud for key: a_8806731013233523690_PlayerDataEn
06-14 05:51:46.872 11496 13554 I Unity : JSON: {"dataVersion":1,"currentStreak":0,"bestStreak":0,"currentScore":0,"totalScore":0,"foundWords":0,"notFoundWords":0,"bestWords":0,"totalGuesses":0,"usedHint":0,"lastUpdatedTicks":638854663068203520}
06-14 05:51:50.040 11496 11496 I Unity : onDestroy
06-14 05:51:50.045 11496 11496 I Unity : Quitting process
btw this is where I use the CloudSaveManager.SaveAll method ->
`public class UIManager : Monobehaviour
{
private void OnApplicationPause(bool pause)
{
GameDataManager.SaveData();
if (pause && CloudServices.IsAvailable())
{
CloudSaveManager.Instance.SaveAll();
}
}
private void OnApplicationQuit()
{
GameDataManager.SaveData();
if (CloudServices.IsAvailable())
{
CloudSaveManager.Instance.SaveAll();
}
}
}`
Hi,
We already sync the data when app goes to background.
You don't need to do it explicitly.
can we get on a call to understand your issue?
hi i solved the problem 🙂 but i have another thing to ask
i put my game to the close testing and it was approved but when i and my friend try to play game, after we select our google play games profile some error occurs like 'Unknown error'.
it was working well with apk build
I tried to clear all data of google play store, google play games and google play services then uninstall & reinstall these but the problem occurs
Hi with this i solved it!
it still gives the same error.. it seems it doesnt solved completely
it happens for 4-5 mails
but in some mails it works well i dont get it
i hope this error doesnt happen on the production process
Meanwhile, can you pls finish the oauth consent process on google cloud console?
This is my current status on oauth consent process
is there anything else i should do
yes i clicked it and those are the pages
and this is the credentials
is there any missing things?
is there a way to get users' google play games profile name on sync method
i want to create the leaderboard with aws dynamodb for real-time
i think i can get here and use it ->
private void OnAuthStatusChange(GameServicesAuthStatusChangeResult result, Error error)
{
if (error == null && result.AuthStatus == LocalPlayerAuthStatus.Authenticated)
{
isAuthenticated = true;
localPlayer = result.LocalPlayer;
playerName = localPlayer.DisplayName;
}
}
hi when i try to get the name like this it doesnt shown in the my aws table? also my profile is open to everyone if that's the case
i read the another thread about 'unkown error' you talked about and you say 'It needs to be signed (Debug/Release/Production-googleplay)', my app is currently in the closed testing and i have release key that is uploaded to upload certificated key in google play console, then i get the app signing key to add it to oauth test client. And my some users have 'unkown error'
As someone who just published an app to the store, and had a friend getting the "Unknown Error" popup constantly, even though I don't get this error on any devices on the production build; this could be because my account is in my tester email list. Although I had all the oath credentials correctly setup, I was missing the final part of publishing credentials, which include adding a 1024x500 image etc., and clicking "Publish".