@capgo/capacitor-webview-version-checker
Public API for checking WebView freshness and guiding users to updates.
Overview
Section titled “Overview”Public API for checking WebView freshness and guiding users to updates.
Core Capabilities
Section titled “Core Capabilities”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, ornullif no check was run yet.
Public API
Section titled “Public API”| Method | Description |
|---|---|
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. |
showUpdatePrompt | Shows a native prompt asking the user to update the WebView. |
openUpdatePage | Opens the configured update page directly. |
addListener | Fired for every successful status evaluation. |
addListener | Fired when the state resolves to latest. |
addListener | Fired when the state resolves to outdated. |
Source Of Truth
Section titled “Source Of Truth”This reference is synced from src/definitions.ts in capacitor-webview-version-checker.