시작하기
설치 단계와 이 플러그인의 전체 마크다운 가이드를 포함한 설정 프롬프트를 복사하세요.
Set up this Capacitor plugin in the project.
Use the package manager already used by the project.
Install these package(s): `@capgo/capacitor-mock-location-detector`
Run the required Capacitor sync/update step after installation.
Read this markdown guide for the full setup steps: https://raw.githubusercontent.com/Cap-go/website/refs/heads/main/apps/docs/src/content/docs/docs/plugins/mock-location-detector/getting-started.mdx
Use that guide for platform-specific steps, native file edits, permissions, config changes, imports, and usage setup.
If that guide references other docs pages, read them too.
bun add @capgo/capacitor-mock-location-detectorbunx cap syncimport { MockLocationDetector } from '@capgo/capacitor-mock-location-detector';권장 흐름
설정 제목 '권장 흐름'const result = await MockLocationDetector.analyze({ requestLocationSample: true, minDetectedChecks: 1,});
if (result.isSimulated) { console.warn('Possible GPS spoofing detected', result.riskScore, result.checks);}__CAPGO_KEEP_1__
__CAPGO_KEEP_2__const mockFlag = await MockLocationDetector.runCheck({ check: 'system_mock_flag',});__CAPGO_KEEP_3__
__CAPGO_KEEP_4__await MockLocationDetector.addListener('locationIntegrityChanged', (event) => { console.log('Integrity changed', event.confidence, event.checks);});
await MockLocationDetector.startMonitoring({ intervalMs: 30000 });__CAPGO_KEEP_5__
__CAPGO_KEEP_6____CAPGO_KEEP_7__
await MockLocationDetector.openDeveloperSettings();__CAPGO_KEEP_8__
플랫폼 설정 섹션 제목- iOS: iOS 설정
- Android: Android 설정
실질적인 출처
실질적인 출처 섹션 제목이 페이지는 플러그인의 src/definitions.tsAPI이 공개적으로 변경될 때 다시 upstream docgen을 실행합니다.