Skip to content

[Bug] MAUI, API 35, Embedded WebView cuts off top content #5382

@MerSpyro

Description

@MerSpyro

Library version used

4.73.1

.NET version

.NET 9, MAUI 9.0.70

Scenario

PublicClient - mobile app

Is this a new or an existing app?

The app is in production, and I have upgraded to a new version of MSAL

Issue description and reproduction steps

Recently with Google requiring all Android applications on Google Play to be compiled with targetSDK 35.
After switch from API 34 to API 35 we noticed that on newer phones/emulators Embedded WebView is now cutting of portion of the page used for sign in, cutting out the logo.

The issue is most probably due to Edge-to-Edge system that has been introduced/forced for API 35+ android apps.

Image

Relevant code snippets

<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="35"/>

MauiAppBasic is used, configuration pasted from the production application to have exact reproduction.
When adding targetSdkVersion="35" and using Android device with SDK 35 the issue happens. 
https://github.com/Azure-Samples/ms-identity-dotnetcore-maui

Expected behavior

Full website should be shown.
Image

Identity provider

Azure B2C Custom Policy

Regression

No response

Solution and workarounds

Custom WebUI

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