가이드
__CAPGO_KEEP_0__ 네이티브 마켓 튜토리얼
@capgo/native-market 사용
Capacitor 네이티브 마켓 플러그인: 앱 스토어 목록 및 페이지 열기
설치
bun add @capgo/native-market
bunx cap sync
이 플러그인이 노출하는 것
openStoreListing- 안드로이드용 플레이 스토어에서 앱 목록 페이지를 열기.openDevPage- iOS용 앱 스토어에서 개발자의 페이지로 직접 링크.openCollection- 안드로이드용 플레이 스토어에서 사용자에게 컬렉션 또는 탑 차트를 링크.openEditorChoicePage- Android에서 Editor의 추천 페이지로 사용자 연결.
사용 예
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에서 개발자의 페이지로 직접 링크.
import { NativeMarket } from '@capgo/native-market';
await NativeMarket.openDevPage({
devId: 'Google+LLC'
});
openCollection
Android에서 Play Store의 컬렉션 또는 탑 차트로 사용자 연결.
import { NativeMarket } from '@capgo/native-market';
await NativeMarket.openCollection({
name: 'featured'
});
openEditorChoicePage
Android에서 Editor의 추천 페이지로 사용자 연결.
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/