メニュー

Expand
ページを評価:

Twilio Verification APIにアプリケーションを登録する

For Twilio Verification SDK for Android to receive SMSs without requesting sms read permissions you will need to register your hash so that Google Play Services will be able to route the SMS to your app.

これが、SMS_READ権限のリクエストを強要することなくGoogle Playサービスが開発者のAppにリダイレクトする方法になります。

Twilio Verify - ハッシュを伴ってSMSをルーティングする

To obtain your app’s hash you can use this script: sms_retriever_hash_v9.sh

使用方法:

./sms_retriever_hash_v9.sh --package package_name --keystore keystore_file

例:

./sms_retriever_hash_v9.sh --package com.package.name --keystore ./debug.keystore 

The script will prompt you to input the keystore password. For debug keystores the default password is android

下記は、スクリプトの処理の遷移図になります:

Twilio Verifyがハッシュを生成します

Once obtained, browse to the Twilio Console -> Verify -> (application) -> Settings and add the hash in the Android SDK Hash Signature field then save it:

Android Hash

For more information about how to generate your app's hash string, check out Google's SMS retriever documentation

https://developers.google.com/identity/sms-retriever/verify#computing_your_apps_hash_string

Lucas Vidal Nikolay Rusinov Josh Staples
ページを評価:

ヘルプが必要ですか?

We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd by visiting Twilio's Community Forums or browsing the Twilio tag on Stack Overflow.

        
        
        

        フィードバックくださりありがとうございます!

        We are always striving to improve our documentation quality, and your feedback is valuable to us. Please select the reason(s) for your feedback or provide additional information about how we can improve:

        Sending your feedback...
        🎉 Thank you for your feedback!
        Something went wrong. Please try again.

        Thanks for your feedback!

        Refer us and get $10 in 3 simple steps!

        ステップ1

        Get link

        Get a free personal referral link here

        ステップ2:

        Give $10

        Your user signs up and upgrade using link

        ステップ3

        Get $10

        1,250 free SMSes
        OR 1,000 free voice mins
        OR 12,000 chats
        OR more