Skip to content

OnBackInvokedCallbacks block back-to-home animation #34594

Description

@markusroessler

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-navigationNavigationPagei/regressionThis issue described a confirmed regression on a currently supported versionpartner/syncfusionIssues / PR's with Syncfusion collaborationplatform/androidregressed-in-10.0.11s/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions