Prism icon indicating copy to clipboard operation
Prism copied to clipboard

[BUG] Android Hardware Back Button when using Prism DialogService to show a Dialog closes the App (on specific scenario)

Open dinisvieira opened this issue 1 year ago • 3 comments

Description

Android Hardware Back Button when using Prism DialogService closes the App if the Page underneath the Dialog is the RootPage of a NavigationPage (on a TabbedPage)

Reproduction sample: https://github.com/dinisvieira/prism-dialog-android-back-button/tree/main

Steps to Reproduce

Run the reproduction App The app contains two Tabs for the TabbedPage:

  • The first tab automatically navigates to a second page, opening the Dialog from this page and closing it with the android back button works fine.
  • The second tab stays on the root page, opening the Dialog on this one and closing it with the android back button closes the popup and also the App itself.

Platform with bug

.NET MAUI

Affected platforms

Android

Did you find any workaround?

No

Relevant log output

No response

dinisvieira avatar Sep 28 '24 15:09 dinisvieira

Thanks for reporting this. I have verified this behavior, and I'm not quite sure how to fix it just yet.

brianlagunas avatar Dec 12 '24 02:12 brianlagunas

I have found a potential "fix" for this, but I'm not really happy with it. Why does MAUI make custom navigation such a pain?

I'm going to keep trying different things before committing my hack.

brianlagunas avatar Jan 27 '25 23:01 brianlagunas

I have found a potential "fix" for this, but I'm not really happy with it. Why does MAUI make custom navigation such a pain?

I'm going to keep trying different things before committing my hack.

I have been suffering a lot with MAUI also so I really appreciate the effort 😅

dinisvieira avatar Jan 27 '25 23:01 dinisvieira