'Xamarin forms Shell Navigation Android back button press

I noticed an insanely big bug with the Shell navigation. Am I doing something wrong?

Let's say we add 3 FlyoutItems to the Menu. After that navigate to the first one, then the second one, and finally the last one using the menu items. Then press the back button of the mobile phone (I have Android 11). It will collapse the whole application to the background instead of navigating back to the second Page. What do you think? That is a huge-huge UX bug In my opinion.

When I do the navigation with the await Shell.Current.GoToAsync(nameof(MyPage)) then the navigation stack is builded, so the back button will bring the previous page. But why not with menuitem navigation?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source