コンテンツにジャンプ

はじめに

ターミナル画面
bun add @capgo/native-market
bunx cap sync
import { NativeMarket } from '@capgo/native-market';

Play Store (Android) または 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'
});

Play Store での開発者のページに直接リンクします。 Android 限定

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

Play Store でのコレクションまたはトップチャートにユーザーをリンクします。 Android 限定

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

Play Storeのエディターの選択ページにユーザーをリンクします。Androidのみ。

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

Play Storeでカスタム検索用語で検索します。Androidのみ。

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

このページはプラグインの src/definitions.tspublic APIがアップストリームで変更されたときに再度Syncを実行してください。