@capgo/capacitor-webview-version-checker
Overview
Section titled “Overview”Public API for checking WebView freshness and guiding users to updates
Start with check() and the other core methods listed below.
Platform support
Section titled “Platform support”| Platform | Support | Notes |
|---|---|---|
| iOS | Yes | Native |
| Android | Yes | Native |
| Web | Partial | See getting started |
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.
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.