0

我試圖張貼/得到谷歌的分數發揮排行榜ID爲XXXXXX的請求的應用程序沒有被發現

我遇到所有的元標籤從文檔,包括我的客戶ID

<meta name="google-signin-client_id" content="XXXXXX-YYYYYYYYYYY.apps.googleusercontent.com" />

我也有安裝了谷歌登入系統,所有的罰款,但是當我試圖調用API排行榜我得到的消息錯誤:The requested application with ID xxxxxx was not found

我打電話像提到的API該文檔

gapi.client.request({ 
      path: '/games/v1/leaderboards/LEADERBOARD-ID', 
      params: { maxResults: 3 }, 
      callback: function(response) { 
       console.log(response); 
      } 
     }); 

回答

1

我不確定如果問題是執行請求缺少的參數。

嘗試使用此API requests方法。

gapi.client.Request

An object encapsulating an HTTP request. This object is not instantiated directly, rather it is returned by gapi.client.request. There are two ways to execute a request. We recommend that you treat the object as a promise and use the then method, but you can also use the execute method and pass in a callback.

您可以參考此Github post作爲附加參考。

This message: W/AchievementAgent(3558): {"code":404,"errors":[{"message":"The requested application with ID 571707973781 was not found.","domain":"global","reason":"notFound "}]} is a little cryptic but points to a mismatch with the auth configuration on the console and the application.

You'll want to double check the keystore SHA1 fingerprint of the keystore you signed the app with and the one configured in the dev console.

It could also be the bundle ID, but that is hard to mess up since it is part of the resource data used when running Setup for the plugin.

Also, it could be that the player is not a tester for this game.

+0

謝謝,我認爲問題是,遊戲還沒有公佈,我試圖發佈測試版,我可以知道到達排行榜但僅從我在遊戲機增加了測試賬號。 – stodi

相關問題