iOSの設定
iOS用のMock Location Detectorプラグインのインストール、同期、ソースマークダウンガイドのコピー可能なセットアップコマンドをコピーします。
要件
要件セクション- 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を提供していません。このプラグインは、デバッガーのアタッチメントや開発用のプロビジョニングのインジケーターなどの間接的推測を使用します。これらをリスクのシグナルとして扱ってください。
iMyFone AnyToなどのツールは、開発者モードとアプリストア外で配布されるコンプライアンスアプリに依存しています。ネイティブチェックとサーバーサイドの詐欺ルールを組み合わせてください。
import { MockLocationDetector } from '@capgo/capacitor-mock-location-detector';
const result = await MockLocationDetector.analyze({ requestLocationSample: true, additionalMockAppUrlSchemes: ['anyto', 'pokeep'],});