@serviam-it/cordova-plugin-android-insets
v1.0.1
Published
Publishes Android WindowInsets as CSS custom properties for Cordova edge-to-edge apps.
Downloads
287
Maintainers
Readme
Android Insets Cordova Plugin
Publishes Android system-bar and display-cutout insets to the root document as CSS custom properties:
--cordova-safe-area-inset-top--cordova-safe-area-inset-right--cordova-safe-area-inset-bottom--cordova-safe-area-inset-left
The plugin starts automatically after deviceready, updates when the system insets change, and only contains Android native code. Values are CSS pixels, not Android physical pixels.
Publish
From this directory, authenticate with the npm account that owns @serviam-it, then publish version 1.0.1 publicly:
npm publish --access publicDo not publish credentials or npm tokens in this repository. If the scoped package name is unavailable, change the name in package.json before publishing and use the same name in the application's config.xml.
Framework7 integration
Map the plugin variables to Framework7's --f7-safe-area-* variables in the application stylesheet. Framework7 then pads navbar and toolbar contents without adding generic page padding.
