程序问答   发布时间:2022-06-01  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了Firebase 动态链接有时无法打开 iOS 应用大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

如何解决Firebase 动态链接有时无法打开 iOS 应用?

开发过程中遇到Firebase 动态链接有时无法打开 iOS 应用的问题如何解决?下面主要结合日常开发的经验,给出你关于Firebase 动态链接有时无法打开 iOS 应用的解决方法建议,希望对你解决Firebase 动态链接有时无法打开 iOS 应用有所启发或帮助;

大约一个月前,我们设置了 Firebase 的无密码注册,它使用通用链接。我们测试了多次,效果很好!每次我们点击发送到电子邮件的链接时,应用都会正常打开。

现在我们有时会收到用户抱怨应用无法打开的情况!相反,他们会看到这个页面;

Firebase 动态链接有时无法打开 iOS 应用

这是我在代码中所做的;

fileprivate func constructActionCodeSetTings() -> ActionCodeSetTings? {
    let urlComponents = constructURLComponents()
    guard let urlParameter = urlComponentS.Url else { return nil }
    
    // --------------------------------
    
    let actionCodeSetTings = ActionCodeSetTings()
    
    actionCodeSetTingS.Url = urlParameter
    actionCodeSetTings.handleCodeInApp = true
    actionCodeSetTings.setIOSBundlEID(Bundle.main.bundlEIDentifIEr!)
    
    return actionCodeSetTings
}

fileprivate func constructURLComponents() -> URLComponents {
    let email = (emailPrefixTextFIEld.text ?? "") + "@\(emailSuffix!)"
    let scheR_376_11845@e = "https"
    let uriPrefix = "app.firebaseapp.com"
    let queryItemEmailname = "email"
    
    // --------------------------------
    
    var components = URLComponents()
    
    components.scheR_376_11845@e = scheR_376_11845@e
    components.host = uriPrefix
    
    // --------------------------------
    
    let emailTypequeryItem = URLqueryItem(name: queryItemEmailname,value: email)
    components.queryItems = [emailTypequeryItem]
    
    return components
}

我相信一切都已正确设置,否则根本无法运行。知道这是怎么回事吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

大佬总结

以上是大佬教程为你收集整理的Firebase 动态链接有时无法打开 iOS 应用全部内容,希望文章能够帮你解决Firebase 动态链接有时无法打开 iOS 应用所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签:应用