'Web' 客户端类型不允许使用自定义方案 URI - Google with Firebase

Custom scheme URIs are not allowed for 'Web' client type - Google with Firebase

我正在尝试使用 firebase 实现 google 登录到我的 iOS 应用程序。我遵循本教程。 https://firebase.google.com/docs/auth/ios/google-signin 我在 firebase 中设置了 iOS 应用程序,并使用下载的 GoogleService-Info.plist 中的 google clientID 和 reversedClientID。

仅供参考:我有一个自定义登录按钮,而不是 google 登录按钮。无论如何,当我单击登录按钮时,google 在网络视图中显示以下错误。

我知道我的问题和这个问题描述的一样。

但是,就我而言,我已经在 Firebase 中创建了应用程序,但我仍然收到错误消息。任何想法请...

第一步是检查您是否已经拥有 iOS 的 OAuth 2.0 ID。为此,请打开 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 第二步是将 Web 客户端 ID 替换为 iOS 客户端 ID 来自 OAuth 2.0 客户端 ID节。为此,您应该打开 GoogleService-Info.plist 并修改以下键:CLIENT_ID[value].apps.googleusercontent.comREVERSED_CLIENT_IDcom.googleusercontent.apps.[value].