コンテンツにスキップ

Getting Started

GitHub

AI-Assisted セットアップを使用してプラグインをインストールできます。次のコマンドを使用して、Capgo スキルをAIツールに追加します。

ターミナルウィンドウ
npx skills add https://github.com/Cap-go/capgo-skills --skill capacitor-plugins

次のプロンプトを使用してください。

Use the `capacitor-plugins` skill from `Cap-go/capgo-skills` to install the `@capgo/capacitor-native-market` plugin in my project.

Manual セットアップを使用する場合は、次のコマンドを実行してプラグインをインストールし、以下のプラットフォーム固有の指示に従ってください。

ターミナルウィンドウ
npm install @capgo/capacitor-native-market
npx cap sync
import { NativeMarket } from '@capgo/capacitor-native-market';

Play Store (Android) または App Store (iOS) でアプリのリスト画面を開きます。

import { NativeMarket } from '@capgo/capacitor-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/capacitor-native-market';
await NativeMarket.openDevPage({
devId: 'Google+LLC'
});

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

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

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

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

カスタム検索ワードでPlayストアを検索します。 Androidのみ。

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

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

Capacitorを使用している場合 Getting Started ダッシュボードとAPIの運用計画を立てるには、 Using @capgo/capacitor-native-market Using @capgo/capacitor-native-market APIの概要 APIの実装詳細については 導入 __CAPGO_KEEP_0__のキーについての実装詳細 API Keys for the implementation detail in API Keys, and ページを編集 __CAPGO_KEEP_0__の詳細