Empezar
Copiar un prompt de configuración con los pasos de instalación y la guía de markdown completa para este 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.
Instalar
Sección titulada “Instalar”bun add @capgo/native-marketbunx cap syncImportar
Sección titulada “Importar”import { NativeMarket } from '@capgo/native-market';API Resumen
Sección titulada “API Resumen”openStoreListing
Sección titulada “openStoreListing”Abrir página de lista de aplicaciones en Google Play (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
Sección titulada “openDevPage”Enlazar directamente a la página de un desarrollador en Google Play. Solo disponible para Android.
import { NativeMarket } from '@capgo/native-market';
await NativeMarket.openDevPage({ devId: 'Google+LLC'});openCollection
Sección titulada “openCollection”Enlazar a los usuarios a una colección o las listas de los más vendidos en Google Play. Solo disponible para Android.
import { NativeMarket } from '@capgo/native-market';
await NativeMarket.openCollection({ name: 'featured'});openEditorChoicePage
Sección titulada “openEditorChoicePage”Enlaza a los usuarios a la página de elección del editor en la Tienda de aplicaciones de Google. Solo para Android.
import { NativeMarket } from '@capgo/native-market';
await NativeMarket.openEditorChoicePage({ editorChoice: 'editorial_fitness_apps_us'});Busca en la Tienda de aplicaciones de Google con términos de búsqueda personalizados. Solo para Android.
import { NativeMarket } from '@capgo/native-market';
await NativeMarket.search({ terms: 'fitness apps'});Fuente de Verdad
Sección titulada “Fuente de Verdad”Esta página se genera a partir del plugin’s.
Re-ejecuta la sincronización cuando los cambios públicos __CAPGO_KEEP_0__ cambian en la fuente. src/definitions.ts. Re-run the sync when the public API changes upstream.