도움말
위치偽造 감지 튜토리얼
@capgo/capacitor-위치偽造 감지
iOS 및 Android에서 App Store에 안전한 Layered 체크를 사용하여 가상 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/