Skip to content

Instantly share code, notes, and snippets.

@rsevil
Last active October 18, 2023 02:35
Show Gist options
  • Save rsevil/377690cef7bde5fe6825e3d248af035d to your computer and use it in GitHub Desktop.
Save rsevil/377690cef7bde5fe6825e3d248af035d to your computer and use it in GitHub Desktop.
Dynamic links - Applinks integration
@Aung-Myint-Thein
Copy link

After more investigation, I found out that the issue is in Firebase API to generate dynamic link short links. If there are socialMetaTagInfo data, the link is going to be broken. However, if there is no data for socialMetaTagInfo section, the link will work.

@rsevil
Copy link
Author

rsevil commented Feb 28, 2020

Hi @Aung-Myint-Thein,

Great news that you got it working, it seems that Firebase "sort of" fixed the problem with Facebook, I don't really know. Although it's really awful that everything breaks when using socialMetaTagInfo section.

I know the magic that makes Facebook open the app when you share a link are the applinks meta tags, Facebook reads them and directly executes the Intent on your app to open it. Another thing that you may not be needing is installing the Facebook Applinks SDK, because Firebase reads the Intent data itself.

In my case, I needed this "proxy page" because at that moment it didn't work by any manner and I had to deliver a working product to one customer so I couldn't wait for Firebase guys to fix it.

Have a great day!

@Aung-Myint-Thein
Copy link

Now iOS is breaking.. it only opens the app but not deep link.. it doesn't even show the preview page in iOS .. what a day I am having! haha Thanks, bro. really appreciate it.

@Aung-Myint-Thein
Copy link

Ah I found that

without social meta tag, iOS won't work but Android will work.
with social meta tag, iOS will work but Android won't work.

@nvtuan96
Copy link

I have tried but DynamicLinks.DynamicLinkReceived is not fired.

@ubarua123
Copy link

What steps do I need to do in order for this to work? I am not a react/angular/JS dev. As in I need create an html and paste this code etc?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment