Zum Inhalt springen

Anfangen

Terminalfenster
bun add @capgo/native-market
bunx cap sync
import { NativeMarket } from '@capgo/native-market';

Öffne die App-Verkaufsseite im Google Play Store (Android) oder im App Store (iOS).

import { NativeMarket } from '@capgo/native-market';
// Open app in store
await NativeMarket.openStoreListing({
appId: 'com.example.app'
});
// Open app in specific country store (iOS only)
await NativeMarket.openStoreListing({
appId: 'com.example.app',
country: 'IT'
});

Direkt zu einer Entwicklerseite im Google Play Store weiterleiten. Nur für Android.

import { NativeMarket } from '@capgo/native-market';
await NativeMarket.openDevPage({
devId: 'Google+LLC'
});

Linke die Benutzer zu einer Sammlung oder den Top-Charts im Google Play Store. Nur für Android.

import { NativeMarket } from '@capgo/native-market';
await NativeMarket.openCollection({
name: 'featured'
});

Linkt Benutzer zur Seite mit den Herausgeberempfehlungen im Google Play Store. Nur für Android.

import { NativeMarket } from '@capgo/native-market';
await NativeMarket.openEditorChoicePage({
editorChoice: 'editorial_fitness_apps_us'
});

Sucht im Google Play Store mit benutzerdefinierten Suchbegriffen. Nur für Android.

import { NativeMarket } from '@capgo/native-market';
await NativeMarket.search({
terms: 'fitness apps'
});

Diese Seite wird aus dem Plugin generiert. Wenn sich die öffentliche __CAPGO_KEEP_0__ im Hintergrund ändert, wird die Synchronisation erneut durchgeführt. src/definitions.ts. Re-run the sync when the public API changes upstream.