#Cant see the leaderboard data on mobile device.

1 messages · Page 1 of 1 (latest)

grizzled osprey
#

Hi, the leaderboard works well in Unity editor, and your demo scene on android but the actual leaderboard doesn't work as expected.

#

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

muted raven
#

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.

grizzled osprey
#

yes both of the profiles public for all players

grizzled osprey
#

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?

grizzled osprey
#

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.

grizzled osprey
muted raven
#

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.

grizzled osprey
#

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

grizzled osprey
#

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();
    }
}

}`

muted raven
#

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?

grizzled osprey
#

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

grizzled osprey
#

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

grizzled osprey
#

Hi with this i solved it!

grizzled osprey
#

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

muted raven
#

Meanwhile, can you pls finish the oauth consent process on google cloud console?

grizzled osprey
#

This is my current status on oauth consent process

#

is there anything else i should do

muted raven
grizzled osprey
#

and this is the credentials

grizzled osprey
#

is there any missing things?

grizzled osprey
#

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;
    }
}
grizzled osprey
#

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

grizzled osprey
#

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'

fervent coyote
#

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".