Install @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-mock-location-detector and run layered GPS spoofing checks. - Manage updates in realtime for your __CAPGO_KEEP_2__ app without store hassles.

はじめに

GitHub
ターミナル画面
bun add @capgo/capacitor-mock-location-detector
bunx cap sync
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.riskScore, result.checks);
}

1回のチェック実行

「1回のチェック実行」
const mockFlag = await MockLocationDetector.runCheck({
check: 'system_mock_flag',
});

継続的なモニタリング

「継続的なモニタリング」
await MockLocationDetector.addListener('locationIntegrityChanged', (event) => {
console.log('Integrity changed', event.confidence, event.checks);
});
await MockLocationDetector.startMonitoring({ intervalMs: 30000 });

ユーザーに設定画面を案内する

「ユーザーに設定画面を案内する」

クリップボードにコピー

await MockLocationDetector.openDeveloperSettings();

プラットフォームの設定

プラットフォームの設定

真実の源

真実の源

このページではプラグインの src/definitions.ts API が公開されるときに、上流の docgen を再実行してください。