@capgo/capacitor-webview-guardian
Capacitor plugin to Detect when the WebView was killed in the background and relaunch it on foreground.
Overview
Section titled “Overview”Capacitor plugin to Detect when the WebView was killed in the background and relaunch it on foreground.
Core Capabilities
Section titled “Core Capabilities”startMonitoring- Starts observing foreground events and automatically checks the WebView health.stopMonitoring- Stops any automatic foreground monitoring.getState- Returns the latest known monitoring state.checkNow- Forces a WebView health probe immediately.
Public API
Section titled “Public API”| Method | Description |
|---|---|
startMonitoring | Starts observing foreground events and automatically checks the WebView health. |
stopMonitoring | Stops any automatic foreground monitoring. |
getState | Returns the latest known monitoring state. |
checkNow | Forces a WebView health probe immediately. |
addListener | See the source definitions for current behavior. |
Source Of Truth
Section titled “Source Of Truth”This reference is synced from src/definitions.ts in capacitor-webview-guardian.