Inizia
Copia un prompt di configurazione con i passaggi di installazione e la guida markdown completa per questo plugin.
Set up this Capacitor plugin in the project.
Use the package manager already used by the project.
Install these package(s): `@capgo/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.
Installa
Sezione intitolata “Installa”bun add @capgo/native-marketbunx cap syncImporta
Sezione intitolata “Importa”import { NativeMarket } from '@capgo/native-market';API Panoramica
Sezione intitolata “API Panoramica”openStoreListing
Sezione intitolata “elenco negozio aperto”Lancia la pagina dei listini dell'applicazione in Play Store (Android) o App Store (iOS).
import { NativeMarket } from '@capgo/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
Sezione intitolata “pagina del developer”Vai direttamente alla pagina del developer nel Play Store. Solo Android.
import { NativeMarket } from '@capgo/native-market';
await NativeMarket.openDevPage({ devId: 'Google+LLC'});openCollection
Sezione intitolata “raccolta”Collega gli utenti a una raccolta o ai top charts nel Play Store. Solo Android.
import { NativeMarket } from '@capgo/native-market';
await NativeMarket.openCollection({ name: 'featured'});openEditorChoicePage
Sezione intitolata “pagina scelta del curatore”Collega gli utenti alla pagina scelta del curatore nel Play Store. Solo Android.
import { NativeMarket } from '@capgo/native-market';
await NativeMarket.openEditorChoicePage({ editorChoice: 'editorial_fitness_apps_us'});Ricerca nel Play Store con termini di ricerca personalizzati. Solo Android.
import { NativeMarket } from '@capgo/native-market';
await NativeMarket.search({ terms: 'fitness apps'});Fonte di Verità
Sezione intitolata “Fonte di Verità”Questa pagina è generata dal plugin src/definitions.ts. Re-run the sync when the public API changes upstream.