-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Android back button override closes app #2815
Comments
it could be the same that is happening to me when I call the GoBackAsync, for some reason is closing the app and sometimes it says "Object no set as an Instance of an object", DON'T KNOW WHY...
|
Is there a workaround? For now i cannot use prism because of this bug. :( |
I noticed this as I just started to move my Prism.Forms projects to MAUI + Prism as well. Using MAUI without Prism have no issue of this. I found a temporary workaround to prevent double navigating back, or close app after meddling it for a while. Launch first page without
In every page, you will need to override
In
|
@dansiegel i have tried the workaround mentioned by @maxchu92 above, but it's pretty hacky. This issue seems to point that the NavigatonService is broken for android. would love a patch for this, as Android app is unusable with this. happens with even the sample e2e app when used with the 8.1.273-pre nuget (instead of the embedded prism Project). |
Any update? |
It's being looked at... and while this exact problem I could fix right now there is another another issue with the back button which isn't so easy to address. It will be fixed when it is fixed. If someone from the community wants to spend the time getting things to work for this we do take PRs, otherwise you will need to wait until I have the time to come up with a fix. |
@maxchu92 I tried your workaround. Now, the hardware back button is working as expected. But if I press the back button in my navigation bar, it is not working. Is there anything I can try? |
The Android back button override from PrismLibrary/Prism.Maui#88 isn't working properly on my end.
Steps to Reproduce
Expected Behavior
Observed Behavior
[DOTNET] ViewB - View Appearing
The text was updated successfully, but these errors were encountered: