Firebase动态链接出现问题 [英] Issue with Firebase dynamic links

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

问题描述

我们正在尝试使用动态链接进行深层链接.链接行为正常.

We are trying to use dynamic links for deep linking. The link is behaving normally.

但是,单击时并没有点击应用程序中的userActivity restoreHandler方法.

However, on click, it is not hitting the userActivity restorationHandler method in the app.

我们已经按照文档中提到的所有步骤进行操作,诊断结果如下所示

We have followed all the steps mentioned in the document, and the output of diagnostics is below

---- Firebase Dynamic Links diagnostic output start 

version 12.1.1,  model iPhone Current date 2018-12-13 05:08:44 +0000 Device locale en-IN (raw en_IN), timezone Asia/Kolkata    Specified custom URL scheme is dev.XXX.xxx and Info.plist contains such scheme in CFBundleURLTypes key.    AppID Prefix: XXXX, Team ID: XXXX, AppId Prefix equal to Team ID: YES performDiagnostic completed successfully! No errors found.

---- Firebase Dynamic Links diagnostic output end -------- 
Firebase Dynamic Links framework version 3.3.0 System information: OS
iOS, OS

动态链接控制台中有一个有关应用程序ID前缀的警告.

There is a warning in the dynamic link console regarding app ID prefix.

iOS应用"com.xxx.ios"缺少应用ID前缀.该应用未启用UniversalLinks.

iOS app ‘com.xxx.ios’ lacks App ID Prefix. UniversalLinks is not enabled for the app.

我们已经对团队ID进行了交叉检查,看来还可以.

We have cross checked our team ID and it seems to be fine.

有人可以帮助我们解决这个问题吗?

Could someone please help us resolve this?

推荐答案

我遇到了同样的问题. 因此,我问了Firebase团队,得到了答案并解决了问题. 这是解决方案.

I had the same issue. So, I asked Firebase team, got answers and fixed the problem. Here is the solution.

似乎在调试Firebase时遇到了问题 动态链接.共享时,将iOS应用添加到Firebase 项目,系统会在其中自动为其生成OAuth客户端ID 关联的Cloud项目.删除应用不会删除其 相应的客户端ID,这可能会导致动态链接出现问题. 以下是更改或删除程序包名称/捆绑包ID的步骤 客户端ID:

Looks like you’ve encountered an issue while debugging your Firebase Dynamic Link. Just to share, when adding an iOS app to a Firebase project, an OAuth client ID is automatically generated for it in it’s associated Cloud project. Deleting the app doesn't remove its corresponding client IDs, which can cause issues for the dynamic link. Here are the steps to change or delete the package name/bundle ID for the client IDs:

  1. 云控制台
  2. 上访问项目
  3. 转到API和服务>凭据
  4. 用名称中有冲突的程序包名称/捆绑ID标识客户端ID(例如:[Android/iOS]客户端 (由Google服务自动创建)
  5. 编辑程序包名称/捆绑包ID并保存更改或删除OAuth客户端ID
  1. Access the project on the Cloud console
  2. Go to APIs and Services > Credentials
  3. Identify the client ID with the conflicting package name/bundle ID in the name (ex: [Android/iOS] client for (auto created by Google Service)
  4. Edit the package name/bundle ID and save changes or delete the OAuth client ID

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

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