Guide
Tutorial on Native Market
Using @capgo/native-market
Capacitor Native Market Plugin for opening app store listings and pages.
Install
bun add @capgo/native-market
bunx cap sync
What This Plugin Exposes
openStoreListing- Launch app listing page in Play Store (Android) or App Store (iOS).openDevPage- Deep-link directly to a developer's page in the Play Store. Android only.openCollection- Link users to a collection or top charts in the Play Store. Android only.openEditorChoicePage- Link users to Editor's choice page in the Play Store. Android only.
Example Usage
openStoreListing
Launch app listing page in Play Store (Android) or 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
Deep-link directly to a developer's page in the Play Store. Android only.
import { NativeMarket } from '@capgo/native-market';
await NativeMarket.openDevPage({
devId: 'Google+LLC'
});
openCollection
Link users to a collection or top charts in the Play Store. Android only.
import { NativeMarket } from '@capgo/native-market';
await NativeMarket.openCollection({
name: 'featured'
});
openEditorChoicePage
Link users to Editor's choice page in the Play Store. Android only.
import { NativeMarket } from '@capgo/native-market';
await NativeMarket.openEditorChoicePage({
editorChoice: 'editorial_fitness_apps_us'
});
Full Reference
- GitHub: https://github.com/Cap-go/capacitor-native-market/
- Docs: /docs/plugins/native-market/