[Bug] MAUI - App shut down by OS on Android 15. Fine on 14. Anyone else have this problem? #5273
Labels
needs attention
Delete label after triage
public-client
untriaged
Do not delete. Needed for Automation
Library version used
4.72.0
.NET version
9
Scenario
PublicClient - mobile app
Is this a new or an existing app?
This is a new app or experiment
Issue description and reproduction steps
This app has been working fine for months with Android 14, but authentication fails with Android 15 (API 35). I have tested it with several different emulators and an OPPO phone running Android 14 and then 15. It worked fine until I updated the OS on my phone.
When I click the login button in the app, it launches the browser. Then the application shuts down. The logs appear to show that the OS is shutting down the app. See logs below. The app is called "kidsareeverywhere".
I've wasted many hours trying to fix this. I'm wondering if it's a problem with MSAL? Has anyone else experienced this?
Device Logs
05-13 17:32:54.649 pixel_7_pro_-_api_35 Info 574 AppsFilter interaction: PackageSetting{977c70b com.android.microdroid.empty_payload/10197} -> PackageSetting{502e9ce com.kidsareeverywhere.kae3_0/10214} BLOCKED
...............
05-13 17:32:54.631 pixel_7_pro_-api_35 Info 574 ActivityManager Killing 12863:com.kidsareeverywhere.kae3_0/u0a214 (adj 700): stop com.kidsareeverywhere.kae3_0 due to from pid 14764
05-13 17:32:54.631 pixel_7_pro-api_35 Debug 574 DisplayManagerService Drop pending events for gone uid 10214
05-13 17:32:54.629 pixel_7_pro-_api_35 Info 574 ActivityManager Force stopping com.kidsareeverywhere.kae3_0 appid=10214 user=0: from pid 14764
...............
05-13 17:32:48.102 pixel_7_pro_-_api_35 Info 574 AppsFilter interaction: PackageSetting{fcb0413 com.kidsareeverywhere.kae3_0/10214} -> PackageSetting{efca1c4 com.android.chrome/10146} BLOCKED
...................
05-13 17:32:48.077 pixel_7_pro_-api_35 Info 12863 DOTNET ############# MSAL [Warning] False MSAL 4.72.0.0 MSAL.Xamarin.Android .NET 9.0.4 35 [2025-05-13 07:32:48Z - 4d4da9e3-8251-4e98-8f43-dfbe3184adc4] Browser with custom tabs package not available. Launching with alternate browser. See https://aka.ms/msal-net-system-browsers for details.
05-13 17:32:48.075 pixel_7_pro-_api_35 Info 574 AppsFilter interaction: PackageSetting{fcb0413 com.kidsareeverywhere.kae3_0/10214} -> PackageSetting{efca1c4 com.android.chrome/10146} BLOCKED
Relevant code snippets
Expected behavior
App launches system browser, user authenticates, MAUI app opens again. This is what happens on Android 14 but not on 15.
Identity provider
Microsoft Entra External ID
Regression
No response
Solution and workarounds
It works if I add ".WithUseEmbeddedWebView(true)" but then the user experience is not as good, and users cannot log in with their Google account.
The text was updated successfully, but these errors were encountered: