You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my app i had two Shells, LoginShell and MainShell. My app used to work perfectly when switching between them by setting:
Shell.Current.Window[0].Page = new MainShell();
This approach had always worked fine in previous .NET versions. But after the upgrade, the physical back button on Android devices stopped working entirely once I change shell to LoginShell after logout .
I can’t find any clear documentation saying whether swapping the root Shell like this is actually a supported approach in .NET MAUI — and now I’m not sure anymore. AI models still keep suggesting it as a valid solution for handling multiple flyout menus, but given the issue I’m seeing, I’m starting to doubt that it’s recommended.
So my question is: Is changing the Shell like this still considered a supported pattern, or should it be avoided on newer .NET/Android versions?
Also, i can see new warning when switching the shell:
Warning - Window already had an alert manager subscription, but a new one was requested. Not going to do anything.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In my app i had two Shells, LoginShell and MainShell. My app used to work perfectly when switching between them by setting:
Shell.Current.Window[0].Page = new MainShell();This approach had always worked fine in previous .NET versions. But after the upgrade, the physical back button on Android devices stopped working entirely once I change shell to LoginShell after logout .
I can’t find any clear documentation saying whether swapping the root Shell like this is actually a supported approach in .NET MAUI — and now I’m not sure anymore. AI models still keep suggesting it as a valid solution for handling multiple flyout menus, but given the issue I’m seeing, I’m starting to doubt that it’s recommended.
So my question is: Is changing the Shell like this still considered a supported pattern, or should it be avoided on newer .NET/Android versions?
Also, i can see new warning when switching the shell:
Warning - Window already had an alert manager subscription, but a new one was requested. Not going to do anything.
Beta Was this translation helpful? Give feedback.
All reactions