自定义方案URI不适用于“网络”客户类型 - 带有Firebase的Google [英] Custom scheme URIs are not allowed for 'Web' client type - Google with Firebase
问题描述
我正在尝试在我的iOS应用中使用firebase进行谷歌登录。我遵循这个教程。
我知道我的问题是一样的在这个问题中描述。
Google 400错误:无效请求自定义方案URI不允许用于Web客户端类型
但是,在我的情况下,我已经在Firebase中创建了应用程序,但仍然出现错误。任何想法,请... ...
第一步是检查您是否已经有iOS的OAuth 2.0 ID。为此,请在API控制台中打开凭证页面。我希望您可以在 OAuth 2.0客户端ID 部分下找到适用于您的应用的 iOS客户端。如果没有,请按照以下指南
第二步是更换来自 OAuth 2.0客户端ID 部分的 iOS客户端ID 中的 Web客户端ID 。为此,您应打开 GoogleService-Info.plist ,然后使用 [value] .apps.googleusercontent.com 修改以下键: CLIENT_ID 和 REVERSED_CLIENT_ID 加上 com.googleusercontent.apps。[value] 。
I am trying to implement google sign in using firebase in to my iOS app. I follow this tutorial. https://firebase.google.com/docs/auth/ios/google-signin I have setup the iOS app in firebase and use the google clientID and reversedClientID from the dowloaded GoogleService-Info.plist.
FYI: I have a custom sign-in button instead of the google sign in button. Anyway when i click the sign in button, google following error display in a webview.
I know my problem is the same as which described in this question.
Google 400 Error: invalid request Custom scheme URIs are not allowed for 'Web' client type
But, in my case, I have created the app in Firebase still I get the error. Any idea please...
The first step is to check if you have already the OAuth 2.0 ID for iOS. To do this please open the Credentials page in the API Console. I hope you will find iOS client for your application under OAuth 2.0 client IDs section. If not, please follow this Guide The second step is to replace the Web Client ID with in iOS Client ID from OAuth 2.0 client IDs section. To do this, you should open the GoogleService-Info.plist and modify following keys: CLIENT_ID with [value].apps.googleusercontent.com and REVERSED_CLIENT_ID with com.googleusercontent.apps.[value].
这篇关于自定义方案URI不适用于“网络”客户类型 - 带有Firebase的Google的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!