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

[Bug] [iOS] Shell.Current.GoToAsync fails from pages in More tab with Shell #7594

Open
jgold6 opened this issue Sep 19, 2019 · 11 comments
Open
Labels
a/shell 🐚 e/4 🕓 4 p/iOS 🍎 t/bug 🐛 up-for-grabs We welcome community contributions to any issue, but these might be a good place to start!

Comments

@jgold6
Copy link
Contributor

jgold6 commented Sep 19, 2019

Description

When there are more pages in a TabBar than iOS can fit in the tab bar, iOS creates a More tab with the extra pages. If you open one of the pages in the More tab and then try to navigate to a new page with Shell.Current.GoToAsync, the navigation does not work, nothing happens.

Steps to Reproduce

  1. Open the attached test project
  2. Deploy iOS app to simulator or device
  3. Select the More tab and tap on 5
  4. Tap the "push new page" button

Expected Behavior

A new page will be displayed

Actual Behavior

New page is not displayed
Also page 4 will have the new pushed page instead, so select tab 4 and you should see "Pushed Page" instead of "Page 4" (Might have to do step 4 twice to see this)

Notes

I found some seemingly related bug reports:
Without Shell, i.e. issue with non-shell TabbedPage (which I could verify still exist):
#3483
#1336

Shell issue:
#6784
#6786 (Pull request to fix 6784)

It also seems worth noting that even if you put the Tab items in a FlyoutItem, the issue occurs even when selecting page 5 from the flyout menu.

Basic Information

  • Version with issue: 4.2.0.815419

  • Last known good version: no known good version

  • IDE:

  • Platform Target Frameworks:

    • iOS: 12.4
  • Nuget Packages: Xamarin.Forms and Xamarin.Essentials

  • Affected Devices: All iOS

Reproduction Link

TestShellNavFromMoreTab.zip

@jgold6 jgold6 added s/unverified New report that has yet to be verified t/bug 🐛 labels Sep 19, 2019
@samhouts samhouts removed the s/unverified New report that has yet to be verified label Oct 1, 2019
@PureWeen
Copy link
Contributor

PureWeen commented Dec 7, 2019

#8749 (comment)

@samhouts samhouts added the e/4 🕓 4 label Jan 2, 2020
@samhouts samhouts added inactive Issue is older than 6 months and needs to be retested help wanted We welcome community contributions to any issue, but these might be a good place to start! up-for-grabs We welcome community contributions to any issue, but these might be a good place to start! and removed inactive Issue is older than 6 months and needs to be retested help wanted We welcome community contributions to any issue, but these might be a good place to start! labels Jul 17, 2020
@burrowj
Copy link

burrowj commented Aug 7, 2020

Is there any known workaround for this? I have more than 4 tabs in the app and would like to get it to work. Thanks

@TheSundayDev
Copy link

still having the same problem, is there a workaround? Thank you in advance.

@wagenheimer
Copy link

wagenheimer commented Feb 10, 2021

Shell navigation is not working at all for me on iOS (Xamarin 5.0.0.1931)
I can't navigate to any ContentPage with Shell.PresentationMode="ModalAnimated"

@educatedcg
Copy link

Anyone found a work around for this.. This is killing me.. I'd hate to revert the iOS version of my app back..

@pictos
Copy link
Contributor

pictos commented Feb 18, 2021

Hey please see if this workaround works for you. Also, there's a known issue that if your more tab has more items than that device can present at once that will fails. That's the way that iOS handle that TableView.

@TheSundayDev
Copy link

Hi all, i have the same issue but with Shell TabBar when the page is under More tab. what can i do ? thanks

@educatedcg
Copy link

@pictos , I owe you a drink.. This works... Refactored the App Shell not to use FlyoutDisplayOptions="AsMultipleItems" and dynamically add any new menu as unique Flyoutitem with Shell content and now navigation magically works. Just need to figure a way to add some basic tabs back to the bottom of the screen. It looks a bit naked now.. :-)

@TheSundayDev
Copy link

Hi all, i have the same issue but with Shell TabBar when the page is under More tab. what can i do ? thanks

@2dc-gidz
Copy link

@pictos it only works in flyout but not in Shell Tab. Any workaround for shell tabs?

@SagarCIS
Copy link

Shell navigation is not working at all for me on iOS (Xamarin 5.0.0.1931) I can't navigate to any ContentPage with Shell.PresentationMode="ModalAnimated"

Have you found any work around for the same
as I am also facing same issue from last week, also same working on Android but I am not able to navigate on iOS.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a/shell 🐚 e/4 🕓 4 p/iOS 🍎 t/bug 🐛 up-for-grabs We welcome community contributions to any issue, but these might be a good place to start!
Projects
None yet
Development

No branches or pull requests

10 participants