はじめから始めよう
インストール手順とこのプラグインの全マークダウンガイドを含むセットアップ用の質問をコピーできます。
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.
Install
Section titled “Install”npm install @capgo/capacitor-native-marketnpx cap syncImport
Section titled “Import”import { NativeMarket } from '@capgo/capacitor-native-market';API の概要
API の概要というセクションopenStoreListing
「openStoreListing」というタイトルのセクション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
__CAPGO_KEEP_0__ のページを開くPlay Store での開発者のページに直接リンクします。 Android 限定
import { NativeMarket } from '@capgo/capacitor-native-market';
await NativeMarket.openDevPage({ devId: 'Google+LLC'});openCollection
__CAPGO_KEEP_0__ のコレクションを開くPlay Store でのコレクションまたはトップチャートにユーザーをリンクします。 Android 限定
import { NativeMarket } from '@capgo/capacitor-native-market';
await NativeMarket.openCollection({ name: 'featured'});openEditorChoicePage
「openEditorChoicePage」セクションPlay StoreのEditor's choiceページにユーザーをリンクさせる。 Androidのみ。
import { NativeMarket } from '@capgo/capacitor-native-market';
await NativeMarket.openEditorChoicePage({ editorChoice: 'editorial_fitness_apps_us'});search
「search」セクションPlay Storeでカスタム検索用語で検索する。 Androidのみ。
import { NativeMarket } from '@capgo/capacitor-native-market';
await NativeMarket.search({ terms: 'fitness apps'});真実の源
「真実の源」セクションこのページはプラグインの src/definitions.tsAPIがアップストリームで変更されたときに再度Syncを実行する。
Getting Startedから続ける
「Getting Startedから続ける」セクションCapgoを使用している場合 Getting Started APIと連携してダッシュボードとAPIの操作を計画する capgo/capacitor-native-marketを使用して@capgo/capacitor-native-market capgo/capacitor-native-marketのネイティブ機能について APIの概要 APIの実装詳細について Capgoの概要 __CAPGO_KEEP_0__のキーについて APIの実装詳細について for the implementation detail in API Keys, and デバイス __CAPGO_KEEP_0__の実装詳細についての情報は、デバイスのページにあります。