cordova-plugin-firebase-dynamiclinks icon indicating copy to clipboard operation
cordova-plugin-firebase-dynamiclinks copied to clipboard

iOS - Firebase Dynamic Link doesn't redirect to the app when open through Safari

Open cmohanraj10 opened this issue 5 years ago • 7 comments

I have added this plugin in my app, when I open in iPhone link through Google Chrome, it redirects me to the app, but when I'm trying to open app through Safari, it doesn't open the app.

<plugin name="cordova-plugin-firebase-dynamiclinks" source="npm" spec="0.13.2"> <param name="APP_DOMAIN" value="example.com" /> <param name="PAGE_LINK_DOMAIN" value="example.page.link" /> <param name="FIREBASE_DYNAMIC_LINKS_VERSION" value="11.8.0" /> </plugin>

Deep link : https://example.page.link/hQk3

iOS link settings : image

Handling code on Device Ready : cordova.plugins.firebase.dynamiclinks.onDynamicLink(function(data){ var data = JSON.stringify(data); var obj = JSON.parse(data); alert("Deep Link: "+obj.deepLink); });

Even through Chrome, sometimes it opens the App Store and previous deep link value returning instead of the current one.

What can be wrong and how is possible to fix that?

cmohanraj10 avatar Feb 27 '19 13:02 cmohanraj10

@cmohanraj10 I'm experiencing the same issue. Safari app won't redirect and Chrome redirects. Have you found a solution to make it work for safari?

CaptainNelis avatar Jul 25 '19 15:07 CaptainNelis

Same issue here. And for now I'm working on a simulator, so there is no way to test if it works on another browser...

dudizimber avatar Sep 18 '19 08:09 dudizimber

Same problem here. It just wont open the IOS app. Anyone found a solution?

fabianKut90 avatar Oct 10 '19 19:10 fabianKut90

I had the same problem and solved adding the page link domain to Xcode.

You will find the option under project target > Signing & Capabilities > Associated Domains Add "applinks:example.page.link"

I hope it helps someone

Akeri avatar May 30 '20 17:05 Akeri

It doesn't work even with https://github.com/chemerisuk/cordova-plugin-firebase-dynamiclinks/issues/31#issuecomment-636358306 for me

ilbertt avatar Feb 04 '21 17:02 ilbertt

I also already added associated domains and it's not working for me as well, it redirects me to open link in app page and correctly bringing me to my app on appstore. Would it be because I'm on a debug build?

EDIT: To launch app during development build: https://stackoverflow.com/a/63939770/6689321 This solved my problem of app not opening.

karen1au avatar Mar 25 '21 18:03 karen1au

Hi! I'm using Ionic and faced the same problem. I just ADD ifl param into url and it works

https://url.page.link/?link=https://open.url.com?promocode=PEt0wzqwcx&apn=com.app.app&isi=123456&ibi=com.app.app&ifl=https://url

speshiy avatar May 24 '22 06:05 speshiy