Skip to content
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

[BUG] Android hardware back button causes app to go to background when pressed on a TabbedPage inside a NavigationPage #3178

Closed
mdartu opened this issue Jul 4, 2024 · 0 comments · Fixed by #3181
Assignees
Milestone

Comments

@mdartu
Copy link

mdartu commented Jul 4, 2024

Description

This is a follow-up from my comment on #3123. I feel the fix associated with that issue improves the situation somewhat, but does not resolve it. The problem appears when navigating back to a TabbedPage inside a NavigationPage, while first having navigated away from the TabbedPage. The navigation works as expected when using the "soft" back button as presented by the NavigationPage. The app is sent to the background when using the hardware back button in that case.

I have modified the PrismMauiDemo app in the e2e folder to further demonstrate this, see STR below.

Steps to Reproduce

This is a modified version of the PrismMauiDemo app (based on commit 7be5a56) that can navigate to /NavigationPage/TabbedPage?createTab=ViewA

PrismMauiDemo-modified.zip

  1. Hit "Tabbed Page inside Navigation Page button", this navigates to ViewA
  2. Hit "ViewB" button, this navigates to ViewB.
  3. Press the hardware back button, this will cause the app to be sent to the background. Pressing the "soft" back button does not, it navigates back to ViewA (which is the expected behaviour).

Platform with bug

.NET MAUI

Affected platforms

Android

Did you find any workaround?

No response

Relevant log output

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants