[英]More user data from firebase_auth plugin in Flutter
I have implemented firebase auth (through Google) on Flutter, but I cannot seem to be able to retrieve more user data other than email, picture and name. 我已经在Flutter上实现了Firebase身份验证(通过Google),但是我似乎无法检索电子邮件,图片和姓名以外的更多用户数据。
I'm interested in age and sex of users. 我对用户的年龄和性别感兴趣。 Also, I don't know why but also on the firebase dashboard those data don't seem to be retrieved after login.
另外,我不知道为什么,但在Firebase仪表板上,这些数据似乎在登录后未检索到。
Unfortunately Firebase doesn't provide these information, for retrieving that, you can use the ID that you retrieved after the login with external services. 不幸的是,Firebase没有提供这些信息,为了检索这些信息,您可以使用登录外部服务后检索到的ID。
Eg for gender you can use https://developers.google.com/people/ API. 例如,对于性别,您可以使用https://developers.google.com/people/ API。
Flutter seems like a package that is developed by Google Engineers, for Google APIs including people, you can use it. Flutter似乎是由Google工程师开发的软件包,对于包括人员在内的Google API,您都可以使用。 (I haven't done this operation on Flutter, I know it from Android.)
(我没有在Flutter上执行此操作,我从Android上知道它。)
If you are familiar with Android you can check this question and answers . 如果您熟悉Android,可以查看此问题和解答 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.