Issue with Firebase dynamic links

人走茶凉 提交于 2019-12-07 19:53:16

问题


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

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

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

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

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

Could someone please help us resolve this?


回答1:


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

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. 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


来源:https://stackoverflow.com/questions/53755779/issue-with-firebase-dynamic-links

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!