-
Notifications
You must be signed in to change notification settings - Fork 4k
[firebase_dynamic_links] [iOS] Deeplinks do not work if they are clicked while the app is killed #9110
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
Thanks for the detailed report @tudor07
Does this mean Are you using dart initialization for your project or manual setup using google services file (GoogleService-Info.plist) ? If the latter, are you using |
|
Thanks for the update. Can you take a look at this solution and see if it works in your case ? Also check this comment from team member indicating that initializing with |
I already had the |
From your |
I'm using |
@tudor07
Can you try to first check if
|
I have had the same problem. However, once I tested it with a real device instead of the simulator the initial link wasn't null. @darshankawar It would be nice if you could make it work on the simulator too though :) |
@matthewfx I tested on a real device |
@tudor07 uh oh... in that case I wonder why it sometimes works and sometimes doesn't... Quite concerning to be honest :( |
Screen recording: RPReplay_Final1659447113.mov |
@tudor07 - did you try this link? reactnativefirebase.page.link/bFkn |
Yes, same with that one |
Could you also change the default browser as well to chrome and see if that makes a difference. |
I am using
I get the same behaviour with Chrome. Btw, this behaviour is for links generated inside the app, if I use |
If you get the link It is a 404 hence why we use just the path to push you to another screen to show you it works: https://github.com/firebase/flutterfire/blob/master/packages/firebase_dynamic_links/firebase_dynamic_links/example/lib/main.dart#L60 |
@russellwheatley shouldn't it open the app? My issue was about opening the app and getting the link that was clicked in Dart |
@tudor07 Yes, it will open your app, and the deep link received is the one I mentioned. |
@russellwheatley that's not what it happens with the |
are you running in |
I am also facing this issue. Android is working fine in all states. I have tried this on release builds. I can confirm it doesn't work in IOS terminated state. This is a very crucial feature as 80% of our customers are in IOS. Please help.
|
Similarly for me, it works correctly on android and ios <= 15.5, but it does not work on ios 15.6. @krishna700 if you can verify that you can run on an older ios version. |
@ArkadiuszDatka - My device uses iOS 15.6. It works. |
@ArkadiuszDatka I checked in a device running 15.4.1, it doesn't work in terminated state. |
@russellwheatley My device uses 15.6, but it doesn't work :( |
@krishna700 if you can put 2 seconds delay before FirebaseDynamicLinks.instance.getInitialLink() and check if the link is non-null |
i'm found temporary solution this problem...
and we also can add platform check |
I have a deeplink that when clicked is supposed to open a specific screen.
On Android all scenarios work perfectly.
On iOS I see the following behaviours:
Working scenario:
If the app was already opened, but was put in background, if I click the deeplink, it works fine, the app is put to foreground and shows my custom screen for the opened deeplink path. These are the steps:
Broken scenario:
onLink
/getInitialLink
not called)Minimal code to reproduce:
main.dart
my_app.dart
flutter doctor
Firebase libs:
The text was updated successfully, but these errors were encountered: