Not Getting Email in Android Integration of Twitter

email

#1

I am Using below code snip to get email of user.

    TwitterAuthClient authClient = new TwitterAuthClient();

    authClient.requestEmail(result.data, new Callback<String>() {

        @Override
        public void success(Result<String> result) {
            Log.d("resultresult",result.toString());
        }

        @Override
        public void failure(TwitterException exception) {
           Log.d("exception",""+exception.getMessage());
        }
    });

But not getting any call to success or failure callback.


#2

Hey @sitansu15,

Thanks for posting! Can you share the Logcat output you have leading up to this? Also, can you share your app’s package name?

-Mike


#3

Hi bonnell,

Thanks for reply.
I got it, previously it was for the account where email was not confirmed.


#4

Thanks for letting me know - happy coding :slight_smile:


#5