playgameservices / play-games-plugin-for-unity

Google Play Games plugin for Unity
Other
3.43k stars 954 forks source link

LeaderBoard & ERROR_NOT_AUTHORIZED #1938

Open Kimjungjin87 opened 6 years ago

Kimjungjin87 commented 6 years ago

I have released my game now! But now there is a very serious issue and I ask you for help.

The problem is as follows :

Once you register the scores in the rankings, you will receive a detailed ranking of the rankings. The window closes. Access to the screen below is accessible only.

2017-09-28 9 25 15

Of course, a page that doesn't register the ranking will open well.

Once I discovered a lot of things, and I went through the following steps.

App Signing Certificate - Sha-1 Value >>>> Cleared and re-registered everything to OAuth 2.0.

Login Successful (Top Image Output) Achievement output normal

However, you still can't see the ranking.

What else can I try to do in this state?

--------- send score ---------------

public void ScoreSend(int score) { Debug.Log("Score : " + score);

    switch (_Value)
    {
        case 0:
            Social.ReportScore(score, GPGSIds.leaderboard_4x4, (bool success) =>
            {

            });
            break;
        case 1:
            Social.ReportScore(score, GPGSIds.leaderboard_5x5, (bool success) =>
            {

            });
            break;
        case 2:
            Social.ReportScore(score, GPGSIds.leaderboard_6x6, (bool success) =>
            {

            });
            break;
}

}

}

---------- Login--------------

    PlayGamesClientConfiguration config = new PlayGamesClientConfiguration.Builder()
    .Build();     
    PlayGamesPlatform.InitializeInstance(config);
    PlayGamesPlatform.DebugLogEnabled = true;;
    PlayGamesPlatform.Activate();
    Debug.Log("Activate");
    LogIn();
aca333 commented 6 years ago

I believe you have to click on one of the leaderboards to see the ranking.

rvgarimrj commented 6 years ago

Same problem here. Login is sucessefull, show the achieviments but when I click the button to show the ranking I invoke PlayGamesPlatform.Instance.ShowLeaderboardUI (BraveDragonPlayService.leaderboard_score_ranking); but gives me ERROR_NOT_AUTHORIZED. Any ideas ?

Kimjungjin87 commented 6 years ago

Hello It's a bit old, so I do not remember.

I remember when I did the following:

androidManifext.xml

<activity android: name = "com.google.games.bridge.NativeBridgeActivity" android: theme = "@ android: style / Theme.Translucent.NoTitleBar.Fullscreen" />

This part was omitted and was not printed on the screen.

If you have any problems, please reply. I hope you succeed.

2017-12-12 1:17 GMT+09:00 Gabriel Madeira notifications@github.com:

Same problem here. Login is sucessefull, show the achieviments but when I click the button to show the ranking I invoke PlayGamesPlatform.Instance.ShowLeaderboardUI (BraveDragonPlayService.leaderboard_score_ranking); but gives me ERROR_NOT_AUTHORIZED. Any ideas ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/playgameservices/play-games-plugin-for-unity/issues/1938#issuecomment-350773247, or mute the thread https://github.com/notifications/unsubscribe-auth/AdwM2f_8uCYtLaU3ClOvZKj51lqNTX7Xks5s_VV9gaJpZM4PnMkx .