メインコンテンツにスキップ
@capgo/capacitor-モックロケーションデテクター 認証 & セキュリティ オープンソース

偽の位置検出 Capacitor プラグイン

シミュレートされたGPS位置と開発者ツールを検出してアプリをスパッフォグングする

インストール

bun add @capgo/capacitor-mock-location-detector bunx cap sync
npm、pnpmまたはyarn
  • npm install @capgo/capacitor-mock-location-detector
  • pnpm add @capgo/capacitor-mock-location-detector
  • yarn add @capgo/capacitor-mock-location-detector

ガイド

CapacitorでMock Location Detectorを使用する方法

@capgo/capacitor-mock-location-detectorを使用する

シミュレートされたGPS位置を検出するために、iOSおよびAndroidでレイヤード、App Store安全のチェックを使用します。

インストール

bun add @capgo/capacitor-mock-location-detector
bunx cap sync

このプラグインが公開するもの

  • analyze - すべての利用可能なチェックを実行し、スコア付きの合成結果を返します。
  • runCheck - 指定された検出レイヤーを実行します。
  • getCapabilities - 現在のプラットフォームでサポートされているチェックを検出します。
  • startMonitoring / stopMonitoring - イベントとともに定期的な分析を実行します。
  • openDeveloperSettings - 開発者またはモックツールの使用をユーザーに指示します。

例の使用方法

import { MockLocationDetector } from '@capgo/capacitor-mock-location-detector';

const result = await MockLocationDetector.analyze({
  requestLocationSample: true,
  minDetectedChecks: 1,
});

if (result.isSimulated) {
  console.warn('Possible GPS spoofing detected', result.checks);
}

await MockLocationDetector.openDeveloperSettings();

フルリファレンス

FAQ

Mock Location Detector プラグインのFAQ

Capacitorモックロケーションデータ検出プラグインをCapacitorアプリにインストールするにはどうすればよいですか。

Run "bun add @capgo/capacitor-mock-location-detector" (or "npm install @capgo/capacitor-mock-location-detector"), then run "bunx cap sync" so the iOS and Android projects pick up the native code. Import it from "@capgo/capacitor-mock-location-detector" in your app code.

@capgo/capacitor-mock-location-detectorは、React、Vue、Angularとどのように動作するか?

Yes. Mock Location Detector is a Capacitor package, so it works with any web framework that runs inside Capacitor, including Ionic, React, Vue, Angular, Svelte and plain JavaScript.

Which Capacitor version does @capgo/capacitor-mock-location-detector support?

Capgo プラグインは Capacitor のメジャーバージョンに従います: Capacitor のメジャーバージョンと一致するプラグインのメジャーバージョンを使用してください (例: プラグイン v8 と Capacitor 8)。互換性のある表は GitHub README に記載されています。

capgo/capacitor-mock-location-detector は無料でオープンソースですか?

Yes. The source code is public on GitHub at https://github.com/Cap-go/capacitor-mock-location-detector/ and the package is free to install from npm. Bug reports and pull requests are welcome.

code を Mock Location Detector を使用している場合に、App Store のレビューなしでアップデートできますか?

プラグインをインストールまたはアップグレードすると、ネイティブ code が変更されるため、新しいストアビルドが必要になります。その後、JavaScript、HTML、CSS の変更がプラグインを呼び出すと、Capgo のライブアップデートで即時配信できます。

Mock Location Detector の変更をアプリレビューの待たずに配信します。

このプラグインがストアビルドに含まれると、Capgo ライブアップデートにより、ユーザーに JavaScript、HTML、CSS の変更を数分で反映します。

まず Capgo を実行します。