Skip to content

[BUG] MAUI - App crashes on Android when logging in using MSAL. #5773

@AdamCar2022

Description

@AdamCar2022

Library version used

4.82.1

.NET version

10

Scenario

PublicClient - mobile app

Is this a new or an existing app?

This is a new app or experiment

Issue description and reproduction steps

Hi,

I am having the following issue with running my app on Android. I have a button in my app that navigates to my MSAL login page, once it reaches that page the app stops running in VS 2026. I have tested this on Android physical devices and emulators.

I have included my test results below as well as my device log, output and MSAL class logic:

  • Physical device with Android 14 did not crash
  • Physical device with Android 16 crashed
  • Emulator with Android 12 did not crash
  • Emulator with Android 13 did not crash
  • Emulator with Android 14 did not crash
  • Emulator with Android 15 crashed
  • Emulator with Android 16 crashed

Android Device Log, VS Output and MSAL logic.zip

Relevant code snippets

See details inside the zip file.

Expected behavior

App should not crash in VS 2026 when running the app on Android 15 and 16

Identity provider

Azure B2C Basic Policy

Regression

No response

Solution and workarounds

I have been testing on Android 14 until the issue is resolved.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions