Skip to main content

Ciblage de version

La bonne mise à jour pour chaque version

Tous les utilisateurs ne devraient pas recevoir la même mise à jour. Ciblez selon la version, la plateforme ou des critères personnalisés.

Channel Per Native Version

Create a channel for each native build. When you release native version 1.5.0, create a channel for it. All JS updates for that native version go to that channel.

Selective Update Distribution

Push an update to versions 1.3, 1.4, and 1.5 but skip 1.2. Perfect when older native versions can't support new features.

AppFlow Migration Ready

Recreate AppFlow's version-tied channel behavior exactly. Each native build maps to a Capgo channel with the same control you're used to.

Graceful Deprecation

Stop pushing updates to old versions when you're ready to sunset them. Users on old versions stay stable while new versions get updates.

AppFlow Migration

Maîtrisez les scénarios complexes

Capgo vous donne un contrôle total sur qui reçoit quelles mises à jour

  • 1
    Create a channel for each native version (e.g., 'native-1.5.0')
  • 2
    Configure your app to use the channel matching its native version
  • 3
    Push bundles to specific channels for targeted distribution
  • 4
    Use our CLI to push to multiple channels at once when needed
capacitor.config.ts
// Set channel based on native version
import { CapacitorConfig } from '@capacitor/cli'
import { version } from './package.json'

const config: CapacitorConfig = {
  plugins: {
    CapacitorUpdater: {
      defaultChannel: `native-${version}`,
    }
  }
}

// Upload to specific version channels
# Push to all 1.5.x versions
npx @capgo/cli bundle upload --channel native-1.5.0
npx @capgo/cli bundle upload --channel native-1.5.1
npx @capgo/cli bundle upload --channel native-1.5.2

# Skip older versions that can't support new features
# native-1.4.x devices stay on their current bundle

Cas d'usage

Breaking changes

Envoyez les mises à jour uniquement aux versions compatibles

Déploiements progressifs

Testez les mises à jour sur un sous-ensemble avant le déploiement complet

Support legacy

Continuez à supporter les anciennes versions avec des correctifs spécifiques

Version-to-Channel Mapping

Each native version points to its own channel for precise update control

Native 2.0
native-2.0.0
Latest bundle
Native 1.5
native-1.5.0
Latest bundle
Native 1.4
native-1.4.0
No new updates

Push updates to 2.0 and 1.5 channels only. Users on 1.4 stay stable on their last working bundle.

Besoin d'un ciblage précis ?

Commencez avec le ciblage de version pour vos mises à jour