-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[Android] Pushing TabbedPage from Shell-based ContentPage causes NRE. #7615
Comments
I've updated the title to reflect the issue. On Windows and iOS it does push a new tabbed page. On Android, it blows up with the handler exception. |
Oh, so |
@drasticactions Could you also add a |
https://docs.microsoft.com/en-us/dotnet/maui/user-interface/pages/tabbedpage From the Maui documentation : TabbedPage is incompatible with .NET MAUI Shell apps, and an exception will be thrown if you attempt to use TabbedPage in a Shell app." |
Every service release brings something new for this issue 😄
|
Duplicate of #6389 |
I thought that issus was about displaying TabbedPage as one of Shell's tabbs, not about opening a TabbedPage from within Shell application (see first comment in this issue) In another words, I'm not using TabbedPage as ShellContent, I'm opening it as a new |
Can you attach a repro? I tested pushing a TabbedPage modally and it's working fine for me I also tested with URI routing |
Oh, I thought I've provided a repro, sorry.
|
@maxkoshevoi I think I'm doing a bad job following this thread In your comment here you said
So, I provided an example of how
Isn't using
From that line of code it looks like So, I'm unclear if this issue is related to If it's the former, then can you attach a repro where it's not working modally? Marking things as duplicates just helps us organize and prioritize so I'd like to understand if this is a different bug or a duplicate of #6389 |
Hi @maxkoshevoi. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
@PureWeen Oh, sorry, was a bit busy last couple of weeks (Ukraine, blackouts, and all that fun stuff) and You are right, pushing new TabbedPage modally indeed works (just tested that on my side as well), but as you also pointed out, that's not quite what I'm trying to do. I wrote
(also pointed you to a wrong The expected result I'm trying to achieve is this: #6389 (comment) (also posted it here #7615 (comment), but as a screenshot, not a video). Pushing TabbedPage modally, removes back arrow, update button, and a search bar from the top, which I would like to have. |
@PureWeen I just ran into this issue. It is very easy to reproduce and I would love to get this looked at even with a workaround. I have an app with A shell with 2 flyout items. I want to navigate from one flyout item to another page that just so happens to be a TabbedPage. It throws an exception. Here is a repo sample. Go to page 2 in the flyout and navigate and boom. https://github.com/jamesmontemagno/MauiApp8
If I do platform specifics and put bottom tabs i also get an exception:
|
Verified this issue with Visual Studio Enterprise 17.8.0 Preview 1.0. Can repro on android platform with sample project. |
Is there any work around for this issue? Or is there any way to push appbar to navigation bar using relative Uri in shell instead of Absolute Uri? |
Any update on this? would really like to use TabbedPage on Android |
@PureWeen: I'm seeing the same exception as @jamesmontemagno above. I'd love to be able to use TabbedPage inside a Shell app, but it doesn't look like this is supported at all? |
No current updates Non-shell based pages were heavily reworked for MAUI which made them unfortunately incompatible with shell. TBH it was a fluke that this scenario even worked in XF and we didn't really have any testing around it because the two weren't really meant to be compatible. It's on our radar to make them intentionally compatible but I don't have any specific information on timeline. |
Gotcha. I've tried experimenting with an invisible Tab in a Shell that gets routed to as if it were a detail page. That actually works, but unfortunately back navigation doesn't. But an approach like that might be simpler for Shell apps if you could support it and make it work as expected. |
We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process. |
Description
#6390 added a user-friendly exception messages when using TabbedPags, however, I'm getting
Steps to Reproduce
Open a TabbedPage from a ContentPage on Android
Version with bug
6.0 (current)
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android 12
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: