Passer au contenu

Ajouter an Application

Before Commencer with Capgo, make sure you have:

  • A Capacitor Application installed and configured. Learn how to set up Capacitor
  • Node.js 20 or later installed
  • One of the following development environments:
    • macOS with Xcode (for iOS development) and/or Android Studio (for Android development)
    • Linux with Android Studio (for Android development)
    • Windows with Android Studio (for Android development)
Play
  1. Créer your Compte at https://capgo.Application/register. signup screenshot

  2. Use the Init commands to get started

    Fenêtre de terminal
    npx @capgo/cli@latest init [APIKEY]
    You will be presented with a series of questions. Provide the necessary answers to complete the automated setup.

  3. Déployer a live Mise à jour

In case the init Commande doesn’t work for you, you can manually Ajouter an Application.

  1. Connect the CLI to your account:

    Fenêtre de terminal
    npx @capgo/cli@latest login [APIKEY]

  2. Add the app to your account with this command:

    Fenêtre de terminal
    npx @capgo/cli@latest app add [APP_NAME]

  3. Install the plugin in your app:

    Fenêtre de terminal
    npm i @capgo/capacitor-updater

  4. Configure the plugin in your capacitor.config

    {
    "plugins": {
    CapacitorUpdater: {
    "appId": "Your appID",
    "autoUpdate": true,
    "version": "1.0.0"
    }
    }
    }
    See all Option Disponible. This Information will be infer if not provided.

  5. Call the init method as early as possible in your app:

    import { CapacitorUpdater } from '@capgo/capacitor-updater';
    CapacitorUpdater.notifyAppReady();

  6. Déployer a live Mise à jour