Getting Started
このプラグインのインストール手順とフルマークダウンガイドを含むセットアッププロンプトをコピーしてください。
Set up this Capacitor plugin in the project.
Use the package manager already used by the project.
Install these package(s): `@capgo/capacitor-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.
インストール
「インストール」のセクション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-marketnpx cap syncインポート
「インポート」のセクションimport { NativeMarket } from '@capgo/capacitor-native-market';openStoreListing
Section titled “storeListing”Play Store (Android) または App Store (iOS) でアプリのリスト画面を開きます。
import { NativeMarket } from '@capgo/capacitor-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
Section titled “developerPage”Play Store での開発者のページに直接リンクします。 Android 限定
import { NativeMarket } from '@capgo/capacitor-native-market';
await NativeMarket.openDevPage({ devId: 'Google+LLC'});openCollection
Section titled “collectionPage”Play Store でのコレクションまたはトップチャートにユーザーをリンクします。 Android 限定
import { NativeMarket } from '@capgo/capacitor-native-market';
await NativeMarket.openCollection({ name: 'featured'});openEditorChoicePage
Section titled “editorsChoicePage”Play Store でのエディターの選択ページにユーザーをリンクします。 Android 限定
import { NativeMarket } from '@capgo/capacitor-native-market';
await NativeMarket.openEditorChoicePage({ editorChoice: 'editorial_fitness_apps_us'});search
「検索」のセクションカスタム検索ワードでPlayストアを検索します。 Androidのみ。
import { NativeMarket } from '@capgo/capacitor-native-market';
await NativeMarket.search({ terms: 'fitness apps'});真実の源
「真実の源」のセクションこのページはプラグインの src/definitions.tsパブリックAPIがアップストリームで変更された場合に再度Syncを実行してください。
Getting Startedから続けてください
「Getting Startedから続けてください」のセクション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__の詳細