Rate this page:

Register your app in 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.

This is the way Google Play Services redirects the SMS to the app without forcing it to request the SMS_READ permission.

Twilio Verify - Routing SMS with hash

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


./ --package package_name --keystore keystore_file

For example

./ --package --keystore ./debug.keystore 

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

This is the transformation the script does:

Twilio Verifty Generating the hash

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

Lucas Vidal Nikolay Rusinov Josh Staples
Rate this page:

Need some help?

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


        Thank you for your feedback!

        We are always striving to improve our documentation quality, and your feedback is valuable to us. How could this documentation serve you better?

        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!

        Step 1

        Get link

        Get a free personal referral link here

        Step 2

        Give $10

        Your user signs up and upgrade using link

        Step 3

        Get $10

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