Guide
Capacitor가 플러그인과 __CAPGO_KEEP_1__를 사용하여 사용자에게 맞춤형 플러그인을 제공합니다.
@capgo/capacitor-mock-location-detector
iOS 및 Android에서 Layered, App Store-safe 체크를 사용하여 가상 GPS 위치를 감지합니다.
설치
bun add @capgo/capacitor-mock-location-detector
bunx cap sync
이 플러그인이 제공하는 것
analyze- 모든 체크를 실행하고 점수화된 합성 결과를 반환합니다.runCheck- 하나의 이름이 지정된 감지 층을 실행합니다.getCapabilities- 현재 플랫폼에서 지원되는 체크를 발견합니다.startMonitoring/stopMonitoring- 주기적인 분석과 이벤트.openDeveloperSettings- 개발자 또는 모의 도구를 비활성화하는 사용자에게 안내합니다.
예시 사용
import { 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.checks);
}
await MockLocationDetector.openDeveloperSettings();
전체 참조
- GitHub: https://github.com/Cap-go/capacitor-mock-location-detector/
- 문서: /docs/plugins/mock-location-detector/