5

Currently I am working with the Dynamic links from Firebase to implement the password reset function.

On Android everything is working fine and I am handling the deep link if the app get opened by it.

On iOS on the other hand it's also working, but the Flutter app pushes an extra named route with the value of the link. So if someone opens the app it automatically pushes a page with the named route "example.link.com".

How can I disable that?

Marco
  • 147
  • 1
  • 5
  • I have the same problem on iOS, it pushes an extra route to the stack did you find any solution? – Ali Bakhtiyari Aug 31 '22 at 13:57
  • Yes i have the same problem but unfortunately i still haven't found a solution for it and because of that apple always rejects the app now... – Marco Sep 02 '22 at 06:50

2 Answers2

4

There is an issue open on FlutterFire for this behavior, Flutter deep-linking and firebase_dynamic_links should work well together, but the reason is as follows:

On this documentation from flutter, it shows that to activate flutter deep linking on iOS, you need to add this to info.plist

<key>FlutterDeepLinkingEnabled</key>
<true/>

and below it, there's a table showing the behavior of a flutter app with flutter deep linking enabled : enter image description here

which is exactly what we are experiencing. so removing that flag from my project's info.plist fixed my problem.

Ayman Barghout
  • 637
  • 1
  • 5
  • 16
  • I suspected this might be the cause, thanks for confirming, but also on version `^2.0.0` of `firebase_dynamic_links` this issue doesn't happen, so something was introduced in the later versions, I suppose, that causes this behaviour. – Ayman Barghout Sep 06 '22 at 08:35
  • Thank you very much! Removing these lines finally fixed my issue. – Marco Sep 07 '22 at 17:14
0

You have to pass the apple store id and bundle id and minimum version in the IOSParameters

iosParameters: const IOSParameters(
    bundleId: "com.example.app.ios",
    appStoreId: "123456789",
    minimumVersion: "1.0.1",
  ),

Also put the appStoreId in the firebase project in project settings

Vishal Agrawal
  • 274
  • 4
  • 8