Skip to main content
Back to plugins
@capgo/capacitor-webview-version-checker
Tutorial
@capgo/capacitor-webview-version-checker

WebView Version Checker

Capacitor plugin for checking Android WebView version freshness and guiding users to native update flows

Guide

Tutorial on WebView Version Checker

Test on device

Download the Capgo app, then scan the QR code.

WebView Version Checker plugin preview QR code

Using @capgo/capacitor-webview-version-checker

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

Install

bun add @capgo/capacitor-webview-version-checker
bunx cap sync

What This Plugin Exposes

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

Example Usage

check

Runs a version check and returns the latest known status.

import { WebviewVersionChecker } from '@capgo/capacitor-webview-version-checker';

await WebviewVersionChecker.check();

startMonitoring

Enables background monitoring (typically on app resume).

import { WebviewVersionChecker } from '@capgo/capacitor-webview-version-checker';

await WebviewVersionChecker.startMonitoring();

stopMonitoring

Disables monitoring.

import { WebviewVersionChecker } from '@capgo/capacitor-webview-version-checker';

await WebviewVersionChecker.stopMonitoring();

getLastStatus

Returns the last resolved status, or null if no check was run yet.

import { WebviewVersionChecker } from '@capgo/capacitor-webview-version-checker';

await WebviewVersionChecker.getLastStatus();

Full Reference

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

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