ガイド
__CAPGO_KEEP_0__ネイティブマーケットチュートリアル
capgo/native-marketを使用する
Capacitorネイティブマーケットプラグイン:アプリストアのリストやページを開く
インストール
bun add @capgo/native-market
bunx cap sync
__CAPGO_KEEP_0__ネイティブマーケットプラグインの公開内容
openStoreListing- Android用Playストアのアプリリストページを起動します。openDevPage- iOS用App Storeではありませんが、Playストアの開発者のページに直接リンクします。openCollection- Android用Playストアのコレクションやトップチャートにユーザーをリンクします。openEditorChoicePage- Google Playストアのエディターの選択ページにユーザーをリンクする。Androidのみ。
使用例
openStoreListing
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'
});
openDevPage
Play Storeに直接開発者のページにリンクする。Androidのみ。
import { NativeMarket } from '@capgo/native-market';
await NativeMarket.openDevPage({
devId: 'Google+LLC'
});
openCollection
Play Storeのコレクションまたはトップチャートにユーザーをリンクする。Androidのみ。
import { NativeMarket } from '@capgo/native-market';
await NativeMarket.openCollection({
name: 'featured'
});
openEditorChoicePage
Google Playストアのエディターの選択ページにユーザーをリンクする。Androidのみ。
import { NativeMarket } from '@capgo/native-market';
await NativeMarket.openEditorChoicePage({
editorChoice: 'editorial_fitness_apps_us'
});
詳細なリファレンス
- GitHub: https://github.com/Cap-go/capacitor-native-market/
- ドキュメント: /docs/plugins/native-market/