[docs]: Having hard times when implementing navigation to view after user taps on notification #1122
Labels
documentation
Issue to force documentation updates
Feedback Requested
Waiting for new information from the OP
Describe the missing piece of documentation
Here is how my app navigation is set:
StartupView (check is user is signed in) -> HomeView which looks like this:
and AppNavigationBarViewModel would use the startingIndex, provided by HomeView and pass it to the AppNavigationBarView to display the right screen I want. This works without issues, when using
_navigationService.replaceWithHomeView(startingIndex: 2);
from StartupView for example, it navigates to the right screen.The issue arises when I try doing the same when the user clicks on the notification, although it is explained here, that this should work https://www.youtube.com/watch?v=Lq9-DPKWtIc&t=3s, I still can't seem to find a workaround for my scenario.
What happens when the user clicks on a notification, here are logs for example:
Navigating to ThirdScreenView
I/flutter (26686): replaceWithHomeView: 2
I/flutter (26686): Current route: null
I/flutter (26686): Returned result: null
E/OpenGLRenderer(26686): Unable to match the desired swap behavior.
Which is printed from app.route.dart:
The text was updated successfully, but these errors were encountered: