flutterfirebasefirebase-dynamic-links

How to handle deep linking in Flutter after the deprecation of firebase_dynamic_links or instead of other things?


I have implemented a push notification feature in my Flutter application where:

  1. When the app is in the foreground, I can easily navigate to the desired screen.

  2. When the app is running in the background, I can still navigate to the desired screen upon receiving a notification.

  3. However, when the app is killed (terminated from the background), I am unable to route to the desired screen.

I suspect that I need deep linking to handle this case. I was using the firebase_dynamic_links package, but it has been deprecated in the latest Flutter version.

I’m looking for a current solution for deep linking in Flutter. What is the recommended package or method to implement deep linking in a Flutter app after firebase_dynamic_links has been deprecated?

Any help would be greatly appreciated!


Solution

  • You might just need to use this package app_links subscribe to the initial and further links to the app, and it'll work perfectly, also you'll need to disable default Flutter deep linking