I had firebase
dynamic links
integrated and working fine in my app and later i changed to use go_router
and now i don't know what i should do to get it working or how to handle it.
The way i imagined it would be is that the FB dynamic link path
will be the same as the path
to the page in GoRouter
routes
, and go_router will redirect
to the page automatically but i don't think that is how it works and i can't find any resources for this.
So the question is how to use Firebase DynamicLinks
with go_router
?
this is how I did it, looks like working fine :)
For when the app is in terminated mode:
Future main() async { ...
...
then through runApp(MtApp(initialRoute: initialLink)) pass it to GoRouter.initialLocation field or GoRouter.redirect function, depending on how you use it.
wrap your top widget with a statefulWidget your created like:
class AHDynamicLinksManager extends
Hope it helped!