Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cmohanraj10 opened this issue Feb 27, 2019 · 7 comments

Comments

@cmohanraj10
Copy link

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?

@CaptainNelis
Copy link

@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?

@dudizimber
Copy link

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

@fabianKut90
Copy link

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

@Akeri
Copy link

Akeri commented May 30, 2020

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

@ilbertt
Copy link

ilbertt commented Feb 4, 2021

It doesn't work even with #31 (comment) for me

@karen1au
Copy link

karen1au commented Mar 25, 2021

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.

@speshiy
Copy link

speshiy commented May 24, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants