maui icon indicating copy to clipboard operation
maui copied to clipboard

TabBar buttons won't return from a pushed page in Android. Works in iOS.

Open polygonsheep opened this issue 1 year ago • 11 comments

Description

Attached a basic example app. There are 2 tabs on the TabBar, "Home" and "About". Each has a page associated.

From the Home page you can click a button to load a new "Details" page. Once on the Details page, iOS allows you to return to the Home page by clicking the Home TabBar icon. On Android, clicking the Home TabBar icon does nothing and you can never get back to the Home page.

See attached TabBarBug app.

Steps to Reproduce

TabBarBug.zip

Version with bug

6.0.408 (current)

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

Android 12

Did you find any workaround?

no

Relevant log output

No response

polygonsheep avatar Jul 25 '22 15:07 polygonsheep

Hey there, thanks for the report! Could you please provide the repro through a GitHub repo for us to look at please? Thanks!

jfversluis avatar Jul 28 '22 18:07 jfversluis

Hi @polygonsheep. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md

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.

ghost avatar Jul 28 '22 18:07 ghost

ok, hopefully this worked. I don't use github normally. https://github.com/polygonsheep/TabBarBug

polygonsheep avatar Jul 28 '22 20:07 polygonsheep

Looked into this more. On Android, OnNavigating(ShellNavigatingEventArgs args) is never called when tapping the same TabBar icon successive times.

On iOS, it is called every time you click a TabBar icon even successive taps of the same icon.

polygonsheep avatar Aug 03 '22 19:08 polygonsheep

Hi @polygonsheep. We have added the "s/try-latest-version" label to this issue, which indicates that we'd like you to try and reproduce this issue on the latest available public version. This can happen because we think that this issue was fixed in a version that has just been released, or the information provided by you indicates that you might be working with an older version.

You can install the latest version by installing the latest Visual Studio (Preview) with the .NET MAUI workload installed. If the issue still persists, please let us know with any additional details and ideally a reproduction project provided through a GitHub repository.

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.

ghost avatar May 16 '23 08:05 ghost

Verified this issue with Visual Studio Enterprise 17.6.0 Preview 7.0. Not repro on Android platform with above project. repro project: TabBarBug.zip demo2

homeyf avatar May 16 '23 09:05 homeyf

This bug is NOT fixed! What you are doing above is just switching between 2 tabs. On the home page you need to hit "Show Details". At that point you cannot return to the home page by clicking the home icon. Only a problem on Android.

polygonsheep avatar May 16 '23 12:05 polygonsheep

Updated project with latest Maui. https://github.com/polygonsheep/TabBarBug

polygonsheep avatar May 16 '23 12:05 polygonsheep

Also affected by this! Can't come up with a workaround besides reimplementing the TabBar 😒. Can anyone think of a way to detect that second tap?

myrup avatar May 20 '23 10:05 myrup

We aswelll are affected. Microsoft please fix thouse issues

SliemBeji-FBC avatar Nov 03 '23 09:11 SliemBeji-FBC

Still happening in the latest version for Android.

Has anyone found a workaround to this?

Remusqs1 avatar Apr 11 '24 19:04 Remusqs1