Skip to content

Android: Different behavior in BackButton between Android 14 - 16 #33480

@3sRykaert

Description

@3sRykaert

Description

The BackButton behaves differently on a device with Android 14 vs a device on Android 16.

Android 14 Android 16
navigated back to previous screen navigated back to android home screen
Image Image

Steps to Reproduce

  1. Use the repo: https://github.com/dotnet/maui-samples/
  2. Open the file CollectionViewDemos.sln in VisualStudio (located blob/main/10.0/UserInterface/Views/CollectionViewDemos/CollectionViewDemos.sln)
  3. Press an Item on for the MainPage, for example "Vertical list - Text" so the navigation is done to the subscreen
  4. Press BackButton:
  • On Android 14: you navigate back to the MainPage
  • On Android 16: the app is closed and you see the HomeScreen of Android

Link to public reproduction project repository

https://github.com/dotnet/maui-samples/tree/main/10.0/UserInterface/Views/CollectionViewDemos

Version with bug

10.0.20

Is this a regression from previous behavior?

Yes, this used to work in Xamarin.Forms

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

Android 16

Did you find any workaround?

No

Relevant log output

Metadata

Metadata

Assignees

Labels

t/bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions