Confirm user use of numbers

I use Fabric numbers to validate the user for my application. I did everything as described in the description, but when checking the user I get

HTTP error: 401 Authorization required, API error: 32, user message: try again

Here is my code, please help

phoneButton = (DigitsAuthButton) findViewById(R.id.auth_button); phoneButton.setAuthTheme(R.style.AppTheme); phoneButton.setCallback(new AuthCallback() { @Override public void success(DigitsSession digitsSession, String phoneNumber) { } @Override public void failure(DigitsException e) { } }); 

This mistake, I don’t know that I am making the wrong requests for help, I’ve been stuck with this for more than two days.

Please, help.

I tested this on several devices with different network operators. It only works on one. Can anyone tell me how to solve this.

+6
source share
1 answer

Try this. Add this line of code to your OnCreate method.

 Digits.clearActiveSession(); TwitterAuthConfig authConfig = new TwitterAuthConfig(TWITTER_KEY, TWITTER_SECRET); Digits.Builder digitsBuilder = new Digits.Builder().withTheme(R.style.CustomDigitsTheme); 
0
source

All Articles