You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Disables the injection of device css insets into the web view.
710
+
* Specifies how to handle problematic insets on Android.
711
711
*
712
-
* @default false
712
+
* This option is only supported on Android.
713
+
*
714
+
* `both` = Injects CSS variables (`--safe-area-inset-*`) into the document in addition to shrinking the webview into the device safe areas. The margin shrinking is ignored if the document has a meta viewport tag with `viewport-fit=cover`.
715
+
*
716
+
* `css` = Injects CSS variables (`--safe-area-inset-*`) containing correct safe area inset values into the webview.
717
+
*
718
+
* `margins` = Shrinks the webview into the device safe area using view margins. This is ignored if the document has a meta viewport tag with `viewport-fit=cover`.
To disable the inset variable injections, set the configuration setting `disableInsets` to `true`.
35
+
In Android 15+'s default edge-to-edge environment, if your web application does not opt-in to safe area handling via the meta viewport tag (`viewport-fit=cover`), this plugin will automatically apply native padding to the WebView. This ensures your application fits within the safe areas without being obscured by system bars. To control this behavior, use the `insetsHandling` configuration setting.
|**`animation`**| <code>string</code>|Thetypeof status bar animation used when showing or hiding. This option is only supported on iOS. | <code>FADE</code> |
@@ -86,7 +85,7 @@ In `capacitor.config.json`:
86
85
{
87
86
"plugins": {
88
87
"SystemBars": {
89
-
"disableInsets": true,
88
+
"insetsHandling": "margins",
90
89
"style": "DARK",
91
90
"hidden": false,
92
91
"animation": "NONE"
@@ -103,7 +102,7 @@ import { CapacitorConfig } from '@capacitor/cli';
0 commit comments