Skip to main content
Back to plugins
@capgo/capacitor-updater
Tutorial
by github.com/Cap-go

Updater

Deploy live updates instantly to your users without app store review delays

Guide

Tutorial on Updater

Using @capgo/capacitor-updater

Live update for capacitor apps.

Install

bun add @capgo/capacitor-updater
bunx cap sync

What This Plugin Exposes

  • notifyAppReady - Notify the native layer that JavaScript initialized successfully.
  • setUpdateUrl - Set the update URL for the app dynamically at runtime.
  • setStatsUrl - Set the statistics URL for the app dynamically at runtime.
  • setChannelUrl - Set the channel URL for the app dynamically at runtime.

Example Usage

notifyAppReady

Notify the native layer that JavaScript initialized successfully.

import { CapacitorUpdater } from '@capgo/capacitor-updater';

await CapacitorUpdater.notifyAppReady();

setUpdateUrl

Set the update URL for the app dynamically at runtime.

import { CapacitorUpdater } from '@capgo/capacitor-updater';

await CapacitorUpdater.setUpdateUrl({} as UpdateUrl);

setStatsUrl

Set the statistics URL for the app dynamically at runtime.

import { CapacitorUpdater } from '@capgo/capacitor-updater';

await CapacitorUpdater.setStatsUrl({} as StatsUrl);

setChannelUrl

Set the channel URL for the app dynamically at runtime.

import { CapacitorUpdater } from '@capgo/capacitor-updater';

await CapacitorUpdater.setChannelUrl({} as ChannelUrl);

Full Reference