Skip to content

bug: Safe Area Insets broken on Android after recent WebView update #30654

@SteliosMoch

Description

@SteliosMoch

Prerequisites

Ionic Framework Version

v8.x

Current Behavior

Safe area insets are ignored, causing UI overlap with the system status bar and navigation bar.

Image

Expected Behavior

ion-header and ion-footer should respect safe area insets on Android, avoiding overlap with system UI.

Steps to Reproduce

  1. Create a new Ionic app
  2. Add the android folder and make sure compileSdkVersion = 35 and targetSdkVersion = 35
  3. Run the app on an Android device with the latest Android System WebView.
  4. Observe that the toolbars no longer respect safe area insets.

Code Reproduction URL

https://github.com/SteliosMoch/safe-area-test

Ionic Info

Ionic:

Ionic CLI : 7.2.1 (/Users/stelios/.nvm/versions/node/v22.17.0/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 8.7.3
@angular-devkit/build-angular : 19.2.15
@angular-devkit/schematics : 19.2.15
@angular/cli : 19.2.15
@ionic/angular-toolkit : 12.3.0

Capacitor:

Capacitor CLI : 7.4.3
@capacitor/android : 7.4.3
@capacitor/core : 7.4.3
@capacitor/ios : 7.4.3

Utility:

cordova-res : 0.15.4
native-run : 2.0.1

System:

NodeJS : v22.17.0 (/Users/stelios/.nvm/versions/node/v22.17.0/bin/node)
npm : 10.9.2
OS : macOS Unknown

Additional Information

Since last week, Safe Area handling is broken on Android for both ion-header and ion-footer. The top and bottom insets are no longer respected, causing toolbars and content to overlap with the system status bar and navigation bar.

This issue started appearing after the most recent Android System WebView update. Prior to that, the same codebase worked correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug: externalBugs in non-Ionic software that impact Ionic apps (I.e. WebKit, Angular, Android etc)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions