-
Notifications
You must be signed in to change notification settings - Fork 4k
🐛 [Firebase Dynamic Links] getInitialLink and onLink doesn't receive any link while application is terminated (iOS) #9829
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
Comments
I am not sure but maybe this can fix your issue |
@iamnijat it is not helped. |
Thanks for the detailed report @thisisyusub |
Yeap sure, I will check out and give info. |
I have checked the solutions, @darshankawar.Firstly, I have added the following lines to Info.plist:According to another comment, I have checked my API key in Google Cloud Console (before it was unrestricted):I have checked the app again with a new link created in Firebase Dynamic Link Dashboard with real ios device again and it is not working. |
I will check this solution for now too. |
@darshankawar btw, I have tested app links and it is working, it catches the initial link so the problem is coming from the Firebase side. I have checked all things again. |
Thanks for providing these updates. Have you already configured Firebase using Also, per your findings, please run in Also take a look at this similar issue as well. |
@darshankawar, I have configured it with |
@darshankawar I have checked your mentioned solutions. |
Thanks for your patience. I am keeping this issue open and labeling for further insights on expected behavior. /cc @russellwheatley |
Hey @thisisyusub, I've just tested the FlutterFire dynamic links example app, and I was able to receive the dynamic link with deeplink that opened the app from a terminated state. To test in debug mode, you just need to run the app in release mode Results of Doctor summary (to see all details, run flutter doctor -v): • No issues found! I would encourage you to diagnose your specific problem as it seems to me you have something misconfigured. |
Hello. I have the exact same issue as @thisisyusub. My app is correctly capturing the links on Android for both cases, the app is in background or terminated. I'm using both the
Similarly to @thisisyusub the Universal Links work without issues on iOS. And I have also tried the same solutions as @thisisyusub comments in this thread with no success. I have created a very simple project from scratch to test but with no success either. As @russellwheatley suggests, I have tested this on real devices, ranging from iPhone XR to iPhone 12 without success.
I have to say that the Firebase Dynamic Links example is not fully set up for iOS as it is mentioned in its README. So I don't know how @russellwheatley has tested this example on iOS devices. But in any case if I try to clone the flutterfire repo and use the example I get an error saying that I don't have the provisioning profile for the The debug view for my dynamic links shows that there are no errors/warnings, and I'm pretty sure everything is configured, I have already triple-checked. The only workaround that has worked for me is what @AnasBawazir proposes in this comment. But this shows that something must be wrong in the Firebase Dynamic Links SDK for Flutter Also, something to note. Make sure you are installing the GoogleServices-Info.Plist manually, as this comment indicates, to make sure you have the correct GoogleServices-Info.plist. Currently, when using the |
Hello again. @russellwheatley I have checked your link. When I am debugging , It shows like this, but I have configured my app with ID |
@thisisyusub this happens to me. I believe this happens if you register an app to your Firebase project and then delete it after. In my case, I accidentally added the QA version of my app to my Production Firebase Project and since then, the dynamic links debugger always shows the warning that my QA version is missing. Even if I add it and delete it again from the registered apps |
@migalv, I have not done something like this. I have configured the app this one time. |
Hello. @russellwheatley @darshankawar I am also experiencing an issue where getInitialLink does not work in iOS Terminated state. I've been troubleshooting man-day for more than 10 days. I share the conclusion that I have obtained so far.
What I checked is as below.
I've tried my best to verify, but the only difference I can find in the end is swift and objc. What I want to request is below.
PS. Thanks! |
Interesting findings @KKimj, I wonder if it is because users have configured a Swift iOS app 🤔. @migalv or @thisisyusub, can either of you create a repo with a reproduction of this issue? I'm happy to configure it using FF credentials so I can test on my local machine. Out of curiosity; do either of you have a Swift iOS app setup? |
Hey @thisisyusub. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically. If you have more information that will help us get to the bottom of this, just add a comment! |
Since there haven't been any recent updates here, I am going to close this issue. @thisisyusub if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this. |
Bug report
Hi. I am trying to implement dynamic links using Firebase. But it does not work (it opens the application but does not catch the initial link or onLink listener). I have checked before reported solutions (in this repository) but it is not working for my case. I keep in mind that it is working on the Android side correctly.
Flutter version: 3.3.4
Xcode: 14.0.1
Tested iOS version: iOS 16+
Flutter Dynamic Links Version: 5.0.3
Firebase Core Version: 2.1.1
I want to mention some points:
I have added Associated Domains in Xcode




Configured Url Types
Turned on Associated Domains in developer.apple.com
Provided Apple Store ID (but it is not correct apps id it is other app, is used just for test) and Team ID
Steps to reproduce
Steps to reproduce the behavior:
Note: Notifier just used to show dynamic link in the ui (working or not)
Expected behavior
I can't test it in Simulator because it gives the following error:

But in real device (iOS 16, IPhone 11) it is working while application is running in foreground, but when app is terminated, it opens application but not catching dynamic link neither getInitialLink nor onLink listener.
Flutter doctor
Run
flutter doctor
and paste the output below:Click To Expand
Flutter dependencies
Run
flutter pub deps -- --style=compact
and paste the output below:Click To Expand
The text was updated successfully, but these errors were encountered: