一、Api授权的问题 不然会返回 验证取消 错误 Authentication canceled
在 对应测试的项目中 APls & Services中,添加Google Drive API并激活
二、 SHA1签名是否一致 是否2个签名(应用签名签名、上传证书签名)都添加到了 验证凭据列表
通过下面的命令 生成SHA1签名 对比google后台的上传证书签名是否一致
(run this command on C:\Users\<user name>\.android directory)
keytool -list -v -alias <your-key-name> -keystore <path-to-production-keystore>
在GoogleplayStore开发者管理中复制两个SHA1信息
打开谷歌应用凭据(https://console.developers.google.com/apis/credentials),将两个SHA1都添加进凭据列表中
参考链接:
https://developers.google.com/android/guides/client-auth
三、Authentication fail: Returning error code, result:DeveloperError
这个错误是因为 如果要请求id token进行服务器2次验证,就需要用Web client Id,而不是 普通的client id. 需要到google后台凭据列表中 添加,
参考链接:
https://github.com/playgameservices/play-games-plugin-for-unity/issues/3105