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