Unity接入Google Play Games升级Unity后登录出现需要Web Client ID的问题

最近在升级Google Play Game的unity插件之后,出现登录失败的问题,日志显示需要Web Client ID
07-03 20:19:51.646: D/TokenFragment(3682): Fragment exists.. calling processRequests
07-03 20:19:51.646: D/TokenFragment(3682): Building client for: 4a8416a0 (a:true e:false i:true wc: WEB_CLIENTID f: false)
07-03 20:19:51.646: E/TokenFragment(3682): Web client ID is needed for Auth Code
07-03 20:19:51.646: D/TokenFragment(3682): Done with processRequest, result is pending.

初步怀疑是设置的Web Client ID丢失了,但是检查之后发现并没有丢失,检查代码时发现Assets\GooglePlayGames\GameInfo.cs代码里面的WebClientId和ApplicationId没有设置,当时并没有发现问题,后来查了官方的升级说明(https://github.com/playgameservices/play-games-plugin-for-unity/blob/master/UPGRADING.txt)
)之后,有说明 After upgrading, redo setup (click "Google Play Games | Android Setup" and/or
"Google Play Games | iOS Setup" on the menu). Do this even if you had already done
this before on this project. 做完这一步之后发现GameInfo.cs里面有修改WebClientId和ApplicationId的值,所以大致问题应该就出在这里了,升级之后重新设置一遍

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容