Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[iOS] XF - Navigation.PushAsync doesn't work from any page opened in "More" TabbedPage. #3483

Open
leszekkadlof opened this issue Aug 4, 2018 · 5 comments
Labels
e/3 🕒 3 help wanted We welcome community contributions to any issue, but these might be a good place to start! i/high Completely doesn't work, crashes, or is unusably slow, has no obvious workaround; occurs less often inactive Issue is older than 6 months and needs to be retested p/iOS 🍎 t/bug 🐛 up-for-grabs We welcome community contributions to any issue, but these might be a good place to start!

Comments

@leszekkadlof
Copy link

Description

In Xamarin.Forms you cannot push any new child pages if the Page (wrapped in a NavigationPage) is located in the 'More' section of the TabbedPage. If you try to push a new child page, then nothing appears to happen however if you Back out of the parent page and return into the 'More' page (containing list of excessive tabs) and go back to the previously mentioned parent page then the page is blank indicating some sort of Navigation stack corruption. This appears to only fail on iOS.

The demo app attached is a simple app that has 6 tabs where each page has a button that pushes a new page onto the stack.

Steps to Reproduce

  1. Start the Demo
  2. Click into 'More' and choose page '5',
  3. Then click 'Open Page 5' (and nothing happens)
  4. Back out onto the 'More' page via '< More' and go back into page '5'
  5. Now the page is blank.

Expected Behavior

The new page called 'Inner Page 5' to appear and be pushed onto the navigation stack with a 'Back' button.

Actual Behavior

The Navigation.PushAsync does not push the new page onto display while current page appears to get corrupted if you navigate out via the '< More' button and back into that page.

Basic Information

  • Version with issue: 3.0.0.446417 and above
  • Last known good version: n/a
  • IDE: VS for Mac 7.5.4 (build 3)
  • Platform Target Frameworks:
    • iOS: iPhone X iOS 11.4
    • Android: API 25
    • UWP: n/a
  • Android Support Library Version: n/a
  • Nuget Packages: Xamarin.Forms (3.1.0.697729)
  • Affected Devices: iOS Simulator

Screenshots

navigationfailureinmore

Reproduction Link

PushBugInMoreTabbedPage.zip

@pauldipietro pauldipietro added this to New in Triage Aug 4, 2018
@samhouts samhouts added p/iOS 🍎 e/3 🕒 3 i/high Completely doesn't work, crashes, or is unusably slow, has no obvious workaround; occurs less often t/bug 🐛 labels Aug 10, 2018
@samhouts samhouts moved this from New to Ready For Work in Triage Aug 10, 2018
@LJordanCoCo
Copy link

LJordanCoCo commented Sep 14, 2018

-EDIT- I built a basic POC with the most basic tabbed page that had navigation page children and was not able to replicate the seemingly-related problem I mentioned earlier. I've deleted it to avoid muddying the waters.

@samhouts samhouts added this to To do in iOS Ready For Work Oct 15, 2018
@samhouts samhouts removed this from Ready For Work in Triage Oct 15, 2018
@samhouts samhouts added the inactive Issue is older than 6 months and needs to be retested label Mar 13, 2019
@samhouts samhouts added help-wanted up-for-grabs We welcome community contributions to any issue, but these might be a good place to start! help wanted We welcome community contributions to any issue, but these might be a good place to start! and removed help-wanted labels Jun 28, 2019
@samhouts samhouts moved this from To do to Inactive in iOS Ready For Work May 21, 2020
@samhouts samhouts added this to the 5.0.0 milestone Aug 13, 2020
@samhouts samhouts added this to To do in vNext+1 (5.0.0) Aug 14, 2020
@samhouts samhouts removed this from the 5.0.0 milestone Nov 2, 2020
@LittleCornerDev
Copy link

LittleCornerDev commented Nov 12, 2020

After banging my head forever trying to figure out why this works for Android and not iOS even though there are no errors whatsoever.... I found this issue 🤦🏻‍♀️

This is still an issue for my current version on Xamarin.Forms on Visual Studio Mac. When a NavigationPage is in "More" and tries to PushAsync() to go to another page, the constructor of the new page runs, but its OnAppearing() doesn't and neither does the OnDisappearing() of the previous page.

Xamarin.Mac
Version: 6.22.1.26 (Visual Studio Community)

Xamarin.iOS
Version: 14.4.1.3 (Visual Studio Community)

Only workaround I know is to re-order tabs so that ones without ToolbarItems (using PushAsync) are listed earlier so they don't get pushed to "More" section in iOS.

@2dc-gidz
Copy link

Any updates for this?

@edgiardina
Copy link

Still an issue in iOS 15.1 and Xamarin 5.0.0+

@ArunaYarra
Copy link

Any update for this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
e/3 🕒 3 help wanted We welcome community contributions to any issue, but these might be a good place to start! i/high Completely doesn't work, crashes, or is unusably slow, has no obvious workaround; occurs less often inactive Issue is older than 6 months and needs to be retested p/iOS 🍎 t/bug 🐛 up-for-grabs We welcome community contributions to any issue, but these might be a good place to start!
Projects
iOS Ready For Work
  
Inactive
Development

No branches or pull requests

7 participants