Description
The current implementation of predictive back callbacks block the default back-to-home animation on Android.
|
OnBackInvokedDispatcher?.RegisterOnBackInvokedCallback(0, _predictiveBackCallback); |
|
Microsoft.Maui.ApplicationModel.Platform.CurrentActivity?.OnBackInvokedDispatcher?.RegisterOnBackInvokedCallback(0, _predictiveBackCallback); |
Please at least make these registrations customizable or remove them when there's only one page on the navstack - I had to manually remove them via reflection to get the back-to-home animation working again.
Steps to Reproduce
No response
Link to public reproduction project repository
No response
Version with bug
10.0.50
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
10.0.10
Affected platforms
Android
Affected platform versions
Android 16
Did you find any workaround?
remove both callbacks via reflection
Relevant log output
Description
The current implementation of predictive back callbacks block the default back-to-home animation on Android.
maui/src/Core/src/Platform/Android/MauiAppCompatActivity.cs
Line 47 in b4dad75
maui/src/BlazorWebView/src/Maui/Android/BlazorWebViewHandler.Android.cs
Line 138 in b4dad75
Please at least make these registrations customizable or remove them when there's only one page on the navstack - I had to manually remove them via reflection to get the back-to-home animation working again.
Steps to Reproduce
No response
Link to public reproduction project repository
No response
Version with bug
10.0.50
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
10.0.10
Affected platforms
Android
Affected platform versions
Android 16
Did you find any workaround?
remove both callbacks via reflection
Relevant log output