从 google plus 登录重定向到 iOS 应用程序后出现错误 [英] Getting Error after redirecting to iOS app from google plus signin

查看:33
本文介绍了从 google plus 登录重定向到 iOS 应用程序后出现错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的 iPhone 应用中使用 Google plus api 登录.以前我使用我的 gmail 帐户在 google plus api 中创建了我的应用程序.那个时候效果很好.但是,由于某些原因,我使用 gmail 在我的公司帐户中添加了相同的应用程序,并在 Google Plus Console 中创建了新项目并创建了新的客户端 ID.在 Xcode plist 中,我更改了谷歌提供的所有新客户端 ID,但出现以下错误,有人知道吗?如果是这样,请提出您的宝贵建议.

I am using Google plus api signin in my iPhone app. Previous i created my app in google plus api using my gmail account. That time its worked good. But, due to some reasons I have added same app in my company account using gmail and I created new project in Google Plus Console and created new Client ID. And in Xcode plist i have changed all new client id which is given by google, but i am getting following error, could anyone have idea about this? IF so, please give your valuable suggestions.

收到错误错误域=com.google.GooglePlusPlatform Code=-1操作无法完成.(com.google.HTTPStatus 错误 400.)" UserInfo=0x17da00a0 {NSLocalizedDescription=操作无法完成'未完成.(com.google.HTTPStatus 错误 400.)} 和身份验证对象==(null)

推荐答案

在这个问题上花了 4 个小时后,我终于解决了我的问题.这个问题是由于我没有在同意屏幕中输入详细信息,这是 API 的 & 下的一个选项.验证.

After spending 4 hours on this issue, finally i fixed my issue. That issue came due to i did not entered details in Consent screen which is an option under API's & Auth.

我很简单,单击同意屏幕选项并在电子邮件地址字段"中添加电子邮件并在产品名称字段"中添加产品名称.然后点击保存.

I done simply, Clicked the Consent Screen option and added email in the "Email Adress field" and added Product name in the "Product Name field". Then save clicked.

仅此而已.我希望这会在将来对某人有所帮助.我从以下链接中得到了这个答案

错误:invalid_client 没有应用程序名称

这篇关于从 google plus 登录重定向到 iOS 应用程序后出现错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆