Skip to content

@capgo/capacitor-webview-version-checker

Public API for checking WebView freshness and guiding users to updates.

Public API for checking WebView freshness and guiding users to updates.

  • check - Runs a version check and returns the latest known status.
  • startMonitoring - Enables background monitoring (typically on app resume).
  • stopMonitoring - Disables monitoring.
  • getLastStatus - Returns the last resolved status, or null if no check was run yet.
MethodDescription
checkRuns a version check and returns the latest known status.
startMonitoringEnables background monitoring (typically on app resume).
stopMonitoringDisables monitoring.
getLastStatusReturns the last resolved status, or null if no check was run yet.
showUpdatePromptShows a native prompt asking the user to update the WebView.
openUpdatePageOpens the configured update page directly.
addListenerFired for every successful status evaluation.
addListenerFired when the state resolves to latest.
addListenerFired when the state resolves to outdated.

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

Keep going from @capgo/capacitor-webview-version-checker

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

If you are using @capgo/capacitor-webview-version-checker to plan native media and interface behavior, connect it with Using @capgo/capacitor-webview-version-checker for the native capability in Using @capgo/capacitor-webview-version-checker, 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.