메뉴로 이동

시작하기

설치

설치
터미널 창
bun add @capgo/native-market
bunx cap sync

수입

수입
import { NativeMarket } from '@capgo/native-market';

Play Store (안드로이드) 또는 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'
});

개발자의 페이지를 직접 링크합니다. (안드로이드만)

import { NativeMarket } from '@capgo/native-market';
await NativeMarket.openDevPage({
devId: 'Google+LLC'
});

Play Store의 컬렉션 또는 탑 차트에 연결합니다. (안드로이드만)

import { NativeMarket } from '@capgo/native-market';
await NativeMarket.openCollection({
name: 'featured'
});

Play Store의 Editor의 선택 페이지로 이동하세요. (Android 전용)

import { NativeMarket } from '@capgo/native-market';
await NativeMarket.openEditorChoicePage({
editorChoice: 'editorial_fitness_apps_us'
});

Play Store에서 사용자 지정 검색어로 검색하세요. (Android 전용)

import { NativeMarket } from '@capgo/native-market';
await NativeMarket.search({
terms: 'fitness apps'
});

이 페이지는 플러그인의 src/definitions.ts업스트림의 API이 변경되면 다시 싱크를 실행하세요.