Zum Inhalt springen

iOS-Setup

GitHub
  • iOS 15+ für CLLocationSourceInformation.isSimulatedBySoftware
  • Standortberechtigung in Ihrer Host-App
  • Physisches Gerät empfohlen für realistische GPS-Messungen
<key>NSLocationWhenInUseUsageDescription</key>
<string>We verify your location has not been spoofed.</string>

Optionale URL-Schemes für Companion-Spoofing-Apps, die du damit erkennen möchtest 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>

Sie können auch zusätzliche Schemata zur Laufzeit über additionalMockAppUrlSchemes.

Apple stellt keine öffentliche API bereit, um den Developer-Mode-Schalter unter iOS auszulesen. Dieses Plugin nutzt indirekte Heuristiken wie Debugger-Attachment und Development-Provisioning-Indikatoren. Betrachte sie als Risikosignale, nicht als Beweis.

Tools wie iMyFone AnyTo verlassen sich oft auf den Developer Mode und auf Companion-Apps, die außerhalb des App Store vertrieben werden. Kombiniere native Checks mit serverseitigen Fraud-Regeln.

import { MockLocationDetector } from '@capgo/capacitor-mock-location-detector';
const result = await MockLocationDetector.analyze({
requestLocationSample: true,
additionalMockAppUrlSchemes: ['anyto', 'pokeep'],
});