Zum Inhalt springen

@capgo/capacitor-webview-guardian

Capacitor plugin to Detect when the WebView was killed in the background and relaunch it on foreground.

Capacitor plugin to Detect when the WebView was killed in the background and relaunch it on foreground.

  • 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.
MethodDescription
startMonitoringStarts observing foreground events and automatically checks the WebView health.
stopMonitoringStops any automatic foreground monitoring.
getStateReturns the latest known monitoring state.
checkNowForces a WebView health probe immediately.
addListenerSee the source definitions for current behavior.

This reference is synced from src/definitions.ts in capacitor-webview-guardian.