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.
開発者モードの実行確認
「開発者モードの実行確認」セクションAppleはiOS開発者モードの切り替えを読み取るためのパブリックAPIを提供していません。このプラグインは、デバッガのアタッチメントや開発用プロビジョニングの指標を使用して、間接的な推測を行っています。これらはリスクのシグナルとして扱ってください。
開発者モードと補助アプリをApp Store外で配布するアプリを検出するツールは、iMyFone AnyToなどが多くあります。ネイティブのチェックとサーバーサイドの詐欺ルールを組み合わせてください。
import { MockLocationDetector } from '@capgo/capacitor-mock-location-detector';
const result = await MockLocationDetector.analyze({ requestLocationSample: true, additionalMockAppUrlSchemes: ['anyto', 'pokeep'],});