Skip to content

Android 15+ edge to edge enforcement #123

@zero1code

Description

@zero1code

Image

Left Android 13, right Android 15

Issue description

When use "authorization_user_agent" : "WEBVIEW", in msal_config.json on devices with Android 15+, the screen overflow in status, top and navigation bar.

MSAL Auth Plugin Version

3.2.3

Platforms

  • Android
  • iOS
  • MacOS

Account Mode

Single

Android JSON Configuration

"authorization_user_agent" : "WEBVIEW",
  "account_mode": "SINGLE",
  "broker_redirect_uri_registered": true,

Minimal Dart Code Snippet

Future<String> _acquireInteractiveToken(SingleAccountPca msalAuth) async {
    final result = await msalAuth.acquireToken(scopes: _scopes);

    _token = result.accessToken;
    log("SUCCESS: Token acquired successfully");
    log("Token length: ${_token.length}");
    log("Token preview: ${_token.substring(0, 50)}...");

    await _processAndStoreToken(_token);
    log("Token decoded and stored successfully");

    return _token;
  }

Relevant log output

Before submitting, please confirm

  • I have checked the documentation and it does not solve my issue.
  • I have run the example app and the issue still exists.

Flutter Doctor Output

[✓] Flutter (Channel stable, 3.32.8, on macOS 15.5 24F74 darwin-arm64, locale en-BR) [3.1s]
    • Flutter version 3.32.8 on channel stable at /Users/airton.oliveira/Development/flutter/v3.32.5
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision edada7c56e (3 weeks ago), 2025-07-25 14:08:03 +0000
    • Engine revision ef0cd00091
    • Dart version 3.8.1
    • DevTools version 2.45.1

[!] Android toolchain - develop for Android devices (Android SDK version 35.0.0) [4.0s]
    • Android SDK at /Users/airton.oliveira/Library/Android/sdk
    • Platform android-36, build-tools 35.0.0
    • Java binary at: /Users/airton.oliveira/Library/Java/JavaVirtualMachines/corretto-19.0.2/Contents/Home/bin/java
      This JDK is specified in your Flutter configuration.
      To change the current JDK, run: `flutter config --jdk-dir="path/to/jdk"`.
    • Java version OpenJDK Runtime Environment Corretto-19.0.2.7.1 (build 19.0.2+7-FR)
    ! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses

[✓] Xcode - develop for iOS and macOS (Xcode 16.2) [4.7s]
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 16C5032a
    • CocoaPods version 1.16.2

[✓] Chrome - develop for the web [9ms]
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2025.1) [8ms]
    • Android Studio at /Users/airton.oliveira/Applications/Contents/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • android-studio-dir = /Users/airton.oliveira/Applications/Contents/Android Studio.app
    • Java version OpenJDK Runtime Environment (build 21.0.6+-13391695-b895.109)

[✓] VS Code (version 1.103.0) [7ms]
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.116.0

[✓] Connected device (2 available) [6.3s]
    • macOS (desktop) • macos  • darwin-arm64   • macOS 15.5 24F74 darwin-arm64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 137.0.7151.120

[✓] Network resources [678ms]
    • All expected network resources are available.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions