コンテンツに進む

iOSセットアップ

GitHub

Google Cloud reCAPTCHAでiOSモバイルアプリケーションキーを作成します。アプリのCapacitorのバンドル識別子を登録し、次にキーを設定します。 capacitor.config.ts.

iOSはGoogleの RecaptchaEnterprise SDKのモバイル。通常の非Enterprise reCAPTCHA v3はこのプラグインでWebのみで利用可能です; enterprise: false iOSでは拒否されます。

import type { CapacitorConfig } from '@capacitor/cli';
import '@capgo/capacitor-recaptcha';
const config: CapacitorConfig = {
plugins: {
Recaptcha: {
iosSiteKey: 'IOS_SITE_KEY',
},
},
};
export default config;

GoogleのiOS用にCocoaPodsとSwift Package Managerのメタデータを含むプラグインが提供されます。 RecaptchaEnterprise iOS SDK npx cap sync ios installs the native dependency through your selected Capacitor iOS workflow.

セクション「実行」

クリップボードにコピー
import { Recaptcha } from '@capgo/capacitor-recaptcha';
const { token } = await Recaptcha.execute({
action: 'password_reset',
timeout: 10000,
});

iOSのセットアップから続けてください

セクション「iOSのセットアップから続けてください」

The plugin ships CocoaPods and Swift Package Manager metadata for Google’s

If you are using iOS Setup to plan authentication and account flows, connect it with Using @capgo/capacitor-recaptcha for the native capability in Using @capgo/capacitor-recaptcha @capgo/capacitor-social-login for the implementation detail in @capgo/capacitor-social-login @capgo/capacitor-passkey for the implementation detail in @capgo/capacitor-passkey @capgo/capacitor-native-biometric for the implementation detail in @capgo/capacitor-native-biometric, and Two-factor authentication 2要素認証の実装詳細について。