Firebase动态链接无效并被阻止 [英] Firebase dynamic link invalid and blocked

查看:229
本文介绍了Firebase动态链接无效并被阻止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在iOS中实现了Firebase电子邮件身份验证.我已经在4部运行iOS 13.3.1的不同iPhone上测试了该功能,并且它们只能在一半的iPhone中使用,而不能在另一只中使用.对于其中一半无效的内容,我会收到一条错误消息,指出无效的动态链接-已阻止".我在所有iPhone上执行相同的过程,并且连接到相同的WiFi.我试图了解什么会导致这种情况发生?显然,这是手机上的某些东西,阻止了它在通过身份验证后重新回到应用程序.

I’ve implemented firebase email authentication in iOS. I’ve tested the functionality on 4 different iPhones, all running iOS 13.3.1, and it works in half of them and not in the other. For the half that don’t work, I receive an error message stating "Invalid Dynamic Link - Blocked". I’m performing the same process on all iPhones and am connected to the same WiFi. I’m trying to understand what would cause this to happen? It’s clearly something on the phone that is preventing it from segueing back to the app after authenticating.

推荐答案

我遇到了同样的问题,在我的情况下,这是因为我没有设置dynamicLinkDomain(不在firebase示例中).

I had the same problem and in my case, it was that I didn't set the dynamicLinkDomain (it isn't on the firebase example).

let actionCodeSettings = ActionCodeSettings()
actionCodeSettings.url = URL(string: "https://XXXXXX.page.link")
actionCodeSettings.dynamicLinkDomain = "XXXXXX.page.link"
actionCodeSettings.handleCodeInApp = true
actionCodeSettings.setIOSBundleID(Bundle.main.bundleIdentifier!)

这篇关于Firebase动态链接无效并被阻止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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