I use Twitter-Digits library. How to immediately go to the number input, without pressing this button in Fragment
. I tried this option
AuthConfig.Builder builder = new AuthConfig.Builder();
builder.withAuthCallBack(new AuthCallback() {
@Override
public void success(DigitsSession session, String phoneNumber) {
TwitterAuthToken authToken = session.getAuthToken();
Toast.makeText(getActivity(), "Authentication successful for "
+ phoneNumber, Toast.LENGTH_LONG).show();
}
@Override
public void failure(DigitsException error) {
}
});
AuthConfig autConfig = builder.build();
Digits.authenticate(autConfig);
but it does not work. Can you tell me?
Mike from a Fabric here, the user must click on the button in order to confirm that their number is correct and that they agree to the Digits terms of service. It can be pre-filled, but the user must click the button.