Getx not working correctly with firebase dynamic linking

Viewed 8

I have a project that uses getX and initialRoute is "/root".

runApp(
GetMaterialApp.router(
  title: "Application",
  getPages: AppPages.routes,
  routeInformationParser: GetInformationParser(
    initialRoute: Routes.ROOT,
  ),
),

I'm trying to use firebase dynamic linking to open app when click/open link. When I run app from IDE (not by open link), the "GetInformationParser route location" is "/root" and everything goes correctly, but when I kill app and opens with the link (eg: https://myapp.com/ABC123) so the "GetInformationParser route location" is "/ABC123" and I get the error "Bad state: No element" with black screen. If I change link to "https://myapp.com/root" the app runs ok, but I have to create and use data from the link so I can't just use "https://myapp.com/root". If someone can help me understand the issue, that would be great.

0 Answers
Related