Skip to content
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

Getx Deeplink Issue when app terminate #3084

Open
xelent-nabeel opened this issue Apr 25, 2024 · 3 comments
Open

Getx Deeplink Issue when app terminate #3084

xelent-nabeel opened this issue Apr 25, 2024 · 3 comments
Assignees

Comments

@xelent-nabeel
Copy link

When i am using Getx and uni_links I am getting an Error on LabledGlobelKey. Need Help. Thanks in advance
App Opened Normally (Icon Tap) Working
App in Background and Link Tap Working
App Terminated, Opened Normally then it is working
App Terminated, Opened Tapping Link then it is not working. Then it is giving error.

@jahidsakan
Copy link

Im also facing the same issue . A GlobalKey was used multiple times inside one widget's child list.

The offending GlobalKey was: [LabeledGlobalKey#0f54f Key Created by default]
The parent of the widgets with that key was: _FocusInheritedScope
The first child to get instantiated with that key became: Navigator-[LabeledGlobalKey#0f54f Key Created by default]
dirty
dependencies: [UnmanagedRestorationScope]
state: NavigatorState#64d70(lifecycle state: initialized)
The second child that was to be instantiated with that key was: _FocusInheritedScope

@TC-Shubh
Copy link

I am also facing same issue, when trying to get to the profile page with the id

@nandakista
Copy link

nandakista commented May 27, 2024

Hi @xelent-nabeel, @jahidsakan, @TC-Shubh I have same issue in my old projects
after spending a lot of time I found two the solutions that you can choose

  1. Make sure the initialRoute name is '/'
    or
  2. When the deeplink came from cold start, its always open the '/' as initial route and if your initial route name is not '/', getx throw to the unknown route property so you must set unknownRoute in the GetMaterialApp
See the code hereScreenshot 2024-03-02 at 21 04 32

Hope this help you

*Note: it was fixed in the last merge. It's not just published. I wish he could now because trying to pull from the git commit is impossible. #3067

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants