无法与Firebase默认authUI一起使用静默APN,始终为异常

问题描述

在我的Xcode项目中,我启用了APN,并且在Firebase控制台中,我上传了正确的APN密钥。仍然,如果我启动电话号码登录过程(使用预构建的UI),它仍然给我一个例外,说我需要为ReCaptcha添加URL类型。 如何配置它以使用静APN代替?

错误

Exception: "Please register custom URL scheme 'com.googleusercontent.apps.*******' 
in the app's Info.plist file."

谢谢!

解决方法

  • 右键单击Info.plist

  • 选择作为源代码打开

  • 将其添加到:

    内的列表中 CFBundleTypeRole 编辑 CFBundleURLSchemes com.googleusercontent.apps.your-app-id-此处

完整文档可在此处Firebase doc

找到