SDKBoxPlay getPlayerAccountField (“server_auth_code”) 和email获取不到

已经解决了。是我的错,web_client_id 写到了 ios 的 sdkboxplay 段里,应该写在 android 段里。

登录已经成功了
if (1000 === status) {
cc.log(“uid:” + sdkbox.PluginSdkboxPlay.getPlayerId());
cc.log(“email:” + sdkbox.PluginSdkboxPlay.getPlayerAccountField(“email”));
cc.log(“auth:” + sdkbox.PluginSdkboxPlay.getPlayerAccountField(“server_auth_code”));
}
日志显示
uid:10129340123034
email:
auth:
配置方面没有错误,web_client_id 已经写在了 sdkbox_config.json 的 sdkboxplay 下面。
以前用原生 java 和google sdk 写的是可以获取到的,所以google端配置也是没有问题的。
是不是和依赖 Google Play Game 但它不再支持 auth code 有关? https://developers.google.com/games/services/cpp/releaseNotes
Version 2.3
OAuth server auth code is no longer accessible via the Google Play Games Services SDK. Use the Google Sign-In API to access OAuth codes and tokens.

好~~~~~~