ios - Firebase(电话身份验证)获取 iOS 错误 : register custom URL scheme

标签 ios firebase flutter firebase-authentication

我的 flutter 应用程序使用 Firebase Auth(电话)。我一直看到错误:'Please register custom URL scheme 'com.googleusercontent.apps.602546125958-5lk04ghhdfj5xxxxxxxx' .

我已将 URL 架构添加到 info.plist,如下所示,但我遇到了同样的错误。

enter image description here

2020-04-29 20:40:05.173962-0400 Runner[395:20944] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Please register custom URL scheme 'com.googleusercontent.apps.602546125958-5lk04ghhdfj5xxxxxxxx' in the app's Info.plist file.'
*** First throw call stack:
(0x1889035f0 0x188625bcc 0x1887f9b28 0x10086cfa8 0x100f056a0 0x102efb3b0 0x102e921bc 0x102eeb9cc 0x102ea2a68 0x102ea4dcc 0x1888821c0 0x188881edc 0x1888815b8 0x18887c5c8 0x18887bc34 0x1929c538c 0x18c9ae22c 0x10082addc 0x188703800)
libc++abi.dylib: terminating with uncaught exception of type NSException

最佳答案

从 .plist 文件中删除您的 URL 类型条目并按照步骤操作,将自动生成 .plist 条目。
这也适用于 Flutter
脚步:
enter image description here
如果要添加超过 1 个 URL 方案,可以单击 URL 类型中的 +。
如果您有任何问题,请发表评论。
乐意效劳!

关于ios - Firebase(电话身份验证)获取 iOS 错误 : register custom URL scheme,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61514076/

相关文章:

ios - 将自定义 UIView 渲染到 Storyboard

iphone - 以用户友好的方式预加载数据

Flutter iOS 构建错误 - 找不到框架 image_picker

regex - Dart RegExp 字边界等效

ios - 使用 Firebase 进行身份验证自动登录

flutter - 如何在不使用构建器的情况下自动滚动具有一定延迟的 PageView?

ios - If 语句未运行 - iOS

ios - Paypal MECL iOS - 显示 "Pay with a Card"直接查看

firebase - 请求缺少所需的身份验证凭据

android - 何时正确订阅 firebase 中的主题