Passer au contenu

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