A Capacitor plugin to retrieve safe area insets and status bar height for Android and iOS, supporting Capacitor v3+.
capacitor-plugin-safe-area is a Capacitor plugin that retrieves safe area insets and status bar height for Android and iOS devices. It helps developers create UI layouts that adapt to device-specific screen boundaries, such as notches and navigation bars, ensuring content is visible and properly positioned.
Mobile developers using Capacitor for cross-platform app development who need to handle safe areas and status bars dynamically on Android and iOS.
It provides a simple, native-backed API for accessing safe area data, supports real-time updates, and integrates easily with CSS and TailwindCSS, eliminating manual calculations for responsive UI layouts.
capacitor plugin to get safeArea info on Android and IOS, support Capacitor3+
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Provides real-time safe area insets and status bar height via methods like getSafeAreaInsets() and listeners for changes, ensuring UI adapts to device cutouts and rotations.
Easily sets CSS custom properties (e.g., --safe-area-inset-top) and supports TailwindCSS with a dedicated plugin, streamlining styling workflows without manual calculations.
Works on both Android and iOS within Capacitor, offering a unified API for safe area information, as shown in the usage examples for insets and status bar height.
Includes setImmersiveNavigationBar() and unsetImmersiveNavigationBar() methods for Android, enabling full-screen experiences with configurable status bar styles.
Immersive navigation bar methods are explicitly not implemented on iOS, limiting feature parity and forcing developers to handle Apple devices separately.
Tightly coupled with specific Capacitor versions (e.g., v8 requires v5.0.0+), leading to potential breaking changes and maintenance overhead during updates.
Requires developers to manually set CSS properties based on plugin data, as shown in the usage code, adding boilerplate compared to more integrated solutions.