Prise en main
Copiez un prompt de configuration incluant les étapes d'installation et le guide markdown complet pour ce plugin.
Set up this Capacitor plugin in the project.
Use the package manager already used by the project.
Install these package(s): `@capgo/capacitor-native-market`
Run the required Capacitor sync/update step after installation.
Read this markdown guide for the full setup steps: https://raw.githubusercontent.com/Cap-go/website/refs/heads/main/apps/docs/src/content/docs/docs/plugins/native-market/getting-started.mdx
Use that guide for platform-specific steps, native file edits, permissions, config changes, imports, and usage setup.
If that guide references other docs pages, read them too.
Installer
Section intitulée « Installation »Vous pouvez utiliser notre configuration assistée par IA pour installer le plugin. Ajoutez les skills Capgo à votre outil d'IA avec la commande suivante :
npx skills add https://github.com/Cap-go/capgo-skills --skill capacitor-pluginsUtilisez ensuite le prompt suivant :
Use the `capacitor-plugins` skill from `Cap-go/capgo-skills` to install the `@capgo/capacitor-native-market` plugin in my project.Si vous préférez une installation manuelle, installez le plugin en exécutant les commandes suivantes et suivez les instructions spécifiques à chaque plateforme ci-dessous :
npm install @capgo/capacitor-native-marketnpx cap syncImporter
Section intitulée « Import »import { NativeMarket } from '@capgo/capacitor-native-market';Démarrage rapide
Section intitulée « Démarrage rapide »import { NativeMarket } from '@capgo/capacitor-native-market';
await NativeMarket.openStoreListing({ appId: 'com.example.app' });Exemple : recherche sur le Play Store (Android)
Section intitulée « Exemple : recherche Play Store (Android) »import { NativeMarket } from '@capgo/capacitor-native-market';
await NativeMarket.search({ terms: 'fitness tracker' });Erreurs courantes
Section intitulée « Erreurs courantes »- Bundle vs package : iOS utilise l'App Store bundle id, Android utilise l'application id.
- Android uniquement : guard
openDevPageetopenCollectionparCapacitor.getPlatform(). - UI externe: l'interface du store s'ouvre hors de votre WebView, prévoyez la gestion des deep links séparément.
Aperçu de API
Section intitulée « Aperçu API »openStoreListing
Section intitulée « openStoreListing »Ouvrez la page de l'application sur le Play Store (Android) ou l'App Store (iOS).
import { NativeMarket } from '@capgo/capacitor-native-market';
// Open app in storeawait NativeMarket.openStoreListing({ appId: 'com.example.app'});
// Open app in specific country store (iOS only)await NativeMarket.openStoreListing({ appId: 'com.example.app', country: 'IT'});openDevPage
Section intitulée « openDevPage »Lien profond vers la page développeur du Play Store. Android uniquement.
import { NativeMarket } from '@capgo/capacitor-native-market';
await NativeMarket.openDevPage({ devId: 'Google+LLC'});openCollection
Section intitulée « openCollection »Lien vers une collection ou le top des classements du Play Store. Android uniquement.
import { NativeMarket } from '@capgo/capacitor-native-market';
await NativeMarket.openCollection({ name: 'featured'});openEditorChoicePage
Section intitulée « openEditorChoicePage »Lien vers la page « Sélection de l'éditeur » du Play Store. Android uniquement.
import { NativeMarket } from '@capgo/capacitor-native-market';
await NativeMarket.openEditorChoicePage({ editorChoice: 'editorial_fitness_apps_us'});Rechercher dans le Play Store avec des termes personnalisés. Android uniquement.
import { NativeMarket } from '@capgo/capacitor-native-market';
await NativeMarket.search({ terms: 'fitness apps'});Source de vérité
Section intitulée « Source de vérité »Cette page est générée à partir de src/definitions.ts. Relancez la synchronisation lorsque l’API public change en amont.
Continuer depuis Getting Started
Section intitulée « Continuer après Prise en main »Si vous utilisez Prise en main pour planifier les opérations du dashboard et de API, connectez-l’avec Utiliser @capgo/capacitor-native-market pour la fonctionnalité native dans « Utilisation de @capgo/capacitor-native-market », Aperçu de API pour les détails d'implémentation dans « Vue d'ensemble de API », Introduction pour les détails d'implémentation dans l'introduction, Clés API pour les détails d'implémentation dans « Clés API », et Appareils pour les détails d'implémentation dans Devices.