Skip to content

@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.

Keep going from @capgo/capacitor-webview-guardian

Section titled “Keep going from @capgo/capacitor-webview-guardian”

If you are using @capgo/capacitor-webview-guardian to plan native media and interface behavior, connect it with Using @capgo/capacitor-webview-guardian for the native capability in Using @capgo/capacitor-webview-guardian, Using @capgo/capacitor-live-activities for the native capability in Using @capgo/capacitor-live-activities, @capgo/capacitor-live-activities for the implementation detail in @capgo/capacitor-live-activities, Using @capgo/capacitor-video-player for the native capability in Using @capgo/capacitor-video-player, and @capgo/capacitor-video-player for the implementation detail in @capgo/capacitor-video-player.