コンテンツにスキップ

Channel system

このコンテンツはまだ日本語訳がありません。

Capgo and capacitor-updater comes with a powerful channel system.

What you can do with channels:

  • Associate devices to channel for development, beta test, or AB testing
  • Use one channel by dev branch and let your team self-assign from the phone to test

Assigning devices to a channel:

  • Make the channel default, each time a new device asks Capgo for an update this channel will answer
  • Send the deviceId (with getDeviceId method) to your backend and assign it with Capgo public API
  • Make the channel self-assignable (with setChannel method), and let the device subscribe to the channel (with user interaction or not) with method setChannel of the plugin.
  • Use the option defaultChannel in the config to set the default channel for all devices with this plugin configuration.

Channel options

Details of each option:

OptionDescription
Disable auto downgrade under nativeDon’t send an update if the app’s native version is bigger than the channel one
Disable auto upgrade above majorDon’t send an update if the app native version is lower then a Major (1.2.3) from the channel one
Disable auto upgrade above minorDon’t send an update if the app native version is lower then a minor (1.2.3) from the channel one
Allow the device to self-assignLet a device use the setChannel method to this channel
IOSAllow IOS devices to download updates from this channel
AndroidAllow Android devices to download updates from this channel
Allow EmulatorAllow emulators to receive updates from this channel
Allow development buildAllow development build to receive update from this channel