Skip to content

[Bug]: Edge-To-Edge-Mode not working #8416

@MisterNox

Description

@MisterNox

Capacitor Version

8.3.0

Sample Project

https://github.com/MisterNox/safe-area-capacitor-test

Platforms Affected

  • iOS
  • Android
  • Web

Current Behavior

Right now the webview is not covering the entire screen with v8.3.0 and those settings:

  "@capacitor/android": "8.3.0",
  "@capacitor/app": "8.1.0",
  "@capacitor/cli": "8.3.0",
  "@capacitor/core": "8.3.0",
  "@capacitor/haptics": "8.0.2",
  "@capacitor/keyboard": "8.0.2",
  "@capacitor/status-bar": "8.0.2",
  "android": {
    "adjustMarginsForEdgeToEdge": "disable"
  },
  "plugins": {
    "SystemBars": {
      "insetsHandling": "css",
      "style": "DEFAULT",
      "hidden": false,
      "animation": "NONE"
    },
    "Keyboard": {
      "resizeOnFullScreen": false,
      "resize": "none"
    }
  }

Expected Behavior

The webview should cover the entire screen and status bar as well as navigation bar are overlays. I tested it with v.8.1.0 and those settings:

    "@capacitor/android": "8.1.0",
    "@capacitor/app": "8.0.0",
    "@capacitor/cli": "8.1.0",
    "@capacitor/core": "8.1.0",
    "@capacitor/haptics": "8.0.0",
    "@capacitor/keyboard": "8.0.0",
    "@capacitor/status-bar": "8.0.0",
  "android": {
    "adjustMarginsForEdgeToEdge": "disable"
  },
  "plugins": {
    "SystemBars": {
      "insetsHandling": "css",
      "style": "DEFAULT",
      "hidden": false,
      "animation": "NONE"
    },
    "Keyboard": {
      "resizeOnFullScreen": false,
      "resize": "none"
    }
  }

Additional Information

Maybe I missed something, but the last time I built an Android app in capcitor version “8.1.0” the new edge-to-edge mode was automatically enabled for the new Android version. Now, with Capacitor version “8.3.0” it’s no longer enabled by default. Furthermore, I can’t enable this mode either via "adjustMarginsForEdgeToEdge" or through the “SystemBars” config. What am I doing wrong? Has the configuration for enabling edge-to-edge mode changed, or is this a bug? Thanks in advance for your help.

Image

I deleted the entire android folder before each test and I used a Samsung S24 with Android 16 for my tests.

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions