PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Saturday, November 19, 2022

[FIXED] What is Twilio's SMS verification gradle dependency?

 November 19, 2022     android, twilio, twilio-php     No comments   

Issue

I am using Twilio for SMS verification to my android app using Android Studio, and I found this Dependency from Twilio official documentation(compile 'com.twilio: verification:+'), here is the link: https://www.twilio.com/docs/guides/twilio-verification-sdk-integration-guide/integrating-twilio-verification-sdk-using-sample-backend#step-3-add-twilio-verification-sdk-for-android

but as add this dependency, the Gradle shows error and can not be built, here I have already asked my answer: Error:Failed to resolve: com.google.android.gms:play-services-auth-api-phone:10.2.5

Is there anyone who knows what is the exact dependency of Twilio Verification to add in my Android Studio to use Twilio SMS verification.


Solution

another Twilio developer evangelist here.

The issue with that document is that it fails to mention that you will need to use a local Google Play services SDK for the time being until Google releases it out in the wild.

To get that, all you need to do is fill up the form in this page to get the SDK, and the in your code you will do the following:

  1. Open ~/.gradle/gradle.properties
  2. add PARTNER_SDK_DIR=/Users/{USER_NAME}/workspace/partner-sdk
  3. Import the SDK

So you should end up with somthing that looks like this:

allprojects {
    repositories {
        maven {
            url PARTNER_SDK_DIR
        }
        jcenter()
    }
}

We have a sample application on our github repository which you can download and test. You will find it here

Hope this helps you!



Answered By - Marcos Placona
Answer Checked By - Candace Johnson (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing