No Name
No Name

Reputation: 793

How to remove button "use my phone number"?

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?

Upvotes: 1

Views: 118

Answers (1)

Mike Bonnell
Mike Bonnell

Reputation: 16249

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.

Upvotes: 1

Related Questions