Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Prism: Back button on Android closes app when popup is open

$
0
0

Hello everyone,

I was working with popups in Prism. With the following code:

_navigationService.NavigateAsync(nameof(TestPopup));

The popup is added to the navigation stack. Therefore, I expect it go to the previous page when pressing the Android hardware back button. Too bad, it doesn't, it just closes the app (because there is nothing more in the navigation stack?)

Here is a test project where I reproduced it in:
https://github.com/GyllionElderen/PrismPopupTest

Does anyone know what to do to make the app go back to the root page instead of closing the app?


Viewing all articles
Browse latest Browse all 204402

Trending Articles