メインコンテンツへスキップ

iOSのセットアップ

GitHub
  • iOS 15以降 CLLocationSourceInformation.isSimulatedBySoftware
  • ホストアプリの位置情報権限
  • リアルなGPSサンプリングには実機を推奨
<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 の Developer Mode トグルを読み取るための公開 API を提供していません。このプラグインは、デバッガの接続や開発プロビジョニングの指標などの間接的なヒューリスティックを使用します。これらは確実な証拠ではなく、リスクシグナルとして扱ってください。

iMyFone AnyTo のようなツールは、App Store 外で配布される Developer Mode とコンパニオンアプリに依存していることがよくあります。ネイティブチェックとサーバーサイドの不正検出ルールを組み合わせましょう。

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