Skip to content

Return Email always null #38

Closed
Closed
@GePrasetyo

Description

@GePrasetyo

I can get displayname, photo, id. But email return always null. here is my code

			data[0] = task.Result.Email;
			data[1] = task.Result.UserId;
			data[2] = task.Result.DisplayName;
			data[3] = task.Result.ImageUrl.ToString();

			print("my data google: " +data[0] +"," +data[1]+"," +data[2]+".");
			print("link photo : " +data[3]);;

Activity

pronaypeddiraju

pronaypeddiraju commented on Apr 3, 2018

@pronaypeddiraju

Getting the same error

task.Result.Email is always null for android but seems to be working for iOS

GePrasetyo

GePrasetyo commented on Apr 3, 2018

@GePrasetyo
Author

Hi @pronaypeddiraju

I've manage this issue. have you set request email = true ?

i put this code when trying to login

GoogleSignIn.Configuration.RequestEmail = true;

pronaypeddiraju

pronaypeddiraju commented on Apr 4, 2018

@pronaypeddiraju

Thanks @GePrasetyo . It worked once I added the RequestEmail = true.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @GePrasetyo@pronaypeddiraju

        Issue actions

          Return Email always null · Issue #38 · googlesamples/google-signin-unity