Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Issue with Firebase dynamic links

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?

like image 619
Kanishka Avatar asked Dec 13 '18 05:12

Kanishka


People also ask

How do I enable dynamic links in Firebase?

You create a Dynamic Link either by using the Firebase console, using a REST API, iOS or Android Builder API, or by forming a URL by adding Dynamic Link parameters to a domain specific to your app. These parameters specify the links you want to open, depending on the user's platform and whether your app is installed.

How do Firebase dynamic links work?

Dynamic Links are smart URLs that allow you to send existing and potential users to any location within your iOS or Android app. They survive the app install process, so even new users see the content they're looking for when they open the app for the first time. Dynamic Links are no-cost forever, for any scale.

Do Firebase dynamic links expire?

As far as I know, dynamic links work for as long as your firebase project active. I used some dynamic links more than one year after they were created.

How do you debug a Firebase dynamic link?

To help you debug your Dynamic Links, you can preview your Dynamic Links' behavior on different platforms and configurations with an automatically-generated flowchart. Generate the flowchart by adding the d=1 parameter to any short or long Dynamic Link. For example, example. page.


1 Answers

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
like image 51
Masahiro Aoki Avatar answered Oct 21 '22 10:10

Masahiro Aoki