iOS 설정
이 플러그인의 설치 단계와 전체 마크다운 가이드를 포함한 설정 명령어를 복사하세요.
필요 조건
필요 조건- iOS 15 이상
CLLocationSourceInformation.isSimulatedBySoftware - 호스트 앱의 위치 권한
- 실제 GPS 샘플링을 위해 물리 장치가 권장됩니다.
Info.plist
Info.plist<key>NSLocationWhenInUseUsageDescription</key><string>We verify your location has not been spoofed.</string>상대 앱을 감지하고자 하는 의도된 URL 스킴 canOpenURL:
<key>LSApplicationQueriesSchemes</key><array> <string>anyto</string> <string>imyfone-anyto</string> <string>igo</string> <string>igomarkto</string> <string>fakegps</string> <string>mockgps</string> <string>pokeep</string></array>런타임에 추가 스킴을 전달할 수 있습니다. additionalMockAppUrlSchemes.
개발자 모드 reality check
개발자 모드 reality check애플은 iOS 개발자 모드 토글을 읽기 위한 공개 API를 제공하지 않습니다. 이 플러그인은 디버거 연결 및 개발자 배포를 위한 개발자 배포를 사용하는 간접적인 추론을 사용합니다. 그들을 위험 신호로 간주하십시오, 증명이 아닙니다.
개발자 모드와 앱 스토어 외의 앱을 배포하는 의도된 앱에 의존하는 도구는 iMyFone AnyTo와 같은 도구가 있습니다. 네이티브 체크와 서버 측 위조 규칙을 결합하십시오.
예시
예시 제목import { MockLocationDetector } from '@capgo/capacitor-mock-location-detector';
const result = await MockLocationDetector.analyze({ requestLocationSample: true, additionalMockAppUrlSchemes: ['anyto', 'pokeep'],});