Skip to main content
Back to plugins
@capgo/capacitor-updater
Tutorial
@capgo/capacitor-updater

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

Keep going from Using @capgo/capacitor-updater

If you are using Using @capgo/capacitor-updater to plan native plugin work, connect it with @capgo/capacitor-updater for the implementation detail in @capgo/capacitor-updater, Getting Started for the implementation detail in Getting Started, Capgo Plugin Directory for the product workflow in Capgo Plugin Directory, Capacitor Plugins by Capgo for the implementation detail in Capacitor Plugins by Capgo, and Adding or Updating Plugins for the implementation detail in Adding or Updating Plugins.