본문으로 바로가기
플러그인으로 돌아가기
@capgo/native-market
튜토리얼
github.com/Cap-go에서 github

네이티브 마켓

사용자들을 구글 플레이 스토어 또는 애플 앱 스토어에서 앱 페이지로 직접 링크하세요

가이드

__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'
});

전체 참조