@capgo/capacitor-android-sms-retriever wraps Google Play services SMS Retriever and Phone Number Hint APIs for Android-only Capacitor verification flows.
Core Capabilities
Core Capabilities
Core CapabilitiesstartWatch5分間のSMSリトリーバーワッチを1回の検証SMSに使用して開始します。stopWatchアクティブなSMSリトリーバーワッチを停止します。getHashString検証SMSメッセージで使用される11文字のアプリハッシュを読み取ります。getPhoneNumberAndroid Phone Number Hintを開いて選択された電話番号を返します。smsReceived取得した検証SMSをリスンします。smsRetrieverTimeout5分間のタイムアウトをリスンします。smsRetrieverErrorAndroidまたはGoogle Playサービスからランタイムエラーをリスンします。
プラットフォームサポート
プラットフォームサポート| プラットフォーム | サポート |
|---|---|
| Android | サポートされている |
| iOS | サポートされていないスタブ |
| Web | サポートされていないスタブ |
Public API
Public API| Method | 説明 |
|---|---|
startWatch | SMSによる検証を1回受信したときにリスニングを開始する。 |
stopWatch | アクティブなモニターを停止する。 |
getHashString | 11文字のアプリハッシュを返します。 |
getPhoneNumber | 電話番号のヒントを表示し、選択された番号を返します。 |
addListener('smsReceived', ...) | 取得したSMSペイロードを受け取ります。 |
addListener('smsRetrieverTimeout', ...) | タイムアウトイベントを処理します。 |
addListener('smsRetrieverError', ...) | リトリーバー エラーを処理します。 |
getPluginVersion | ネイティブ プラグインのバージョンを返します。 |
真実の源
「真実の源」というセクションこのリファレンスは src/definitions.ts から capacitor-android-sms-retriever.
capgoから@capacitor/capacitor-android-sms-retrieverまで続けます。
Section titled “@capgo/capacitor-android-sms-retriever”から続けるCapgoを使用している場合 @capgo/capacitor-android-sms-retriever Capgoを使用してネイティブプラグインの作業を計画する場合、@__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-android-sms-retriever Using @capgo/capacitor-android-sms-retriever @capgo/capacitor-android-sms-retriever Capgo Plugin Directory @Capgo プラグイン ディレクトリ Capacitor Plugins by Capgo for the implementation detail in Capacitor Plugins by Capgo, Capgoの製品ワークフロー @__CAPGO_KEEP_0__ プラグインの詳細 イオニック エンタープライズ プラグインの代替 イオニック エンタープライズ プラグインの代替の製品ワークフローについて