-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
area-navigationNavigationPageNavigationPagepartner/syncfusionIssues / PR's with Syncfusion collaborationIssues / PR's with Syncfusion collaborationplatform/ioss/needs-attentionIssue has more information and needs another lookIssue has more information and needs another looks/triagedIssue has been reviewedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working
Milestone
Description
Description
I've tested this on iOS, Android and Windows.
on iOS only, the NavigationStack still contains the page you've just popped in the navigation stack when the underlying page's OnAppearing method is triggered. this is causing failures in our existing code as this used to work fine on xamarin forms. I've tried this back to dotnet maui 9.0.0 and it still fails in the same way.
Steps to Reproduce
Prerequisites
- create a basic app with 3 pages (FirstPage, SecondPage, ThirdPage), not using shell. set the main page as a NavigationPage with FirstPage.
- on FirstPage add a button to navigate to SecondPage
- on SecondPage add a button to navigate to ThirdPage
- on SecondPage add an override to OnAppearing, where you can check the navigation stack.
Repro steps:
- Launch the app
- tap the button to navigate to SecondPage
- tap the button to navigate to ThirdPage
- tap the back button on the top left of the screen, to take you back to SecondPage
- OBSERVE
- on iOS: the NavigationStack will have 3 pages, with the last one being ThirdPage when inspected inside the OnAppearing method of the SecondPage. it should only have 2 pages.
- on Android and Windows: NavigationStack only has 2 pages, with the last one being SecondPage, as expected
iOS:
Android
Windows
Link to public reproduction project repository
https://github.com/MitchBomcanhao/maui28414
Version with bug
9.0.50 SR5
Is this a regression from previous behavior?
Yes, this used to work in Xamarin.Forms
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-navigationNavigationPageNavigationPagepartner/syncfusionIssues / PR's with Syncfusion collaborationIssues / PR's with Syncfusion collaborationplatform/ioss/needs-attentionIssue has more information and needs another lookIssue has more information and needs another looks/triagedIssue has been reviewedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working
Type
Projects
Status
Done

