SmartLock doesn't show user profile photo

☆樱花仙子☆ 提交于 2020-01-25 02:51:10

问题


I am not able to retrieve the profile image associated with gmail account that is saved to smart lock.

I am trying to integrate smart lock into my android application. I have multiple credentials (Gmail and password) saved to smart lock and these are returned when I make the CredentialsClient.request() call. Since there are multiple credentials, a system dialog is shown asking the user to choose the preferred credential. I have noticed that the retrieved credentials don't show the profile picture in the dialog (instead an image of envelop is shown) even though the gmail account has a profile image.

CredentialRequest request = new CredentialRequest.Builder()
               .setPasswordLoginSupported(true)
               .build();

I use this request object with my CredentialsClient.

I would like to show the dialog with the profile picture of the Gmail account.

来源:https://stackoverflow.com/questions/57585363/smartlock-doesnt-show-user-profile-photo

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!