xamarin/Xamarin.Forms

[Bug] [Shell] Bottom tab back navigation is not working on Android

Aperta

#7081 aperta il 6 ago 2019

 (4 commenti) (1 reazione) (0 assegnatari)C# (1926 fork)batch import
e/3 :clock3:help wantedp/Androidt/bug :bug:up-for-grabs

Metriche repository

Star
 (5644 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Description

On android, when using bottom tabs in shell, if I navigate to a new page and then navigate back by using the bottom tab bar, no navigation occurs. I am forced to use the back button.

Steps to Reproduce

  1. Create an app with shell and set up 2 bottom tabs.
  2. Push a new page onto the navigation stack using Shell's GoToAsync call
  3. Attempt to navigate back by pressing the bottom tab bar button.

Expected Behavior

I am able to navigate back to the previous page

Actual Behavior

No navigation happens.

Basic Information

  • Version with issue: Forms 4.1
  • Last known good version: none that I know of
  • IDE: windows and mac
  • Platform Target Frameworks: Latest

Reproduction Link

Repro Project

This project is the basic shell template when making a new shell project. I changed the navigation to the item details to using a shell route instead of using the page INavigation property.

Extra info

Navigating back is the behavior found on other android apps with bottom nav bars (Target, YouTube, Spotify).

Guida contributor