简体   繁体   English

Flutter中来自firebase_auth插件的更多用户数据

[英]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.

相关问题 Flutter:由于上述问题,无法构建插件 firebase_auth - Flutter:The plugin firebase_auth could not be built due to the issue above Flutter firebase_auth 麻烦与弃用代码(从 0.16 到 1.0) - Flutter firebase_auth hassle with deprecated code (From 0.16 to 1.0) Flutter - firebase_auth updateProfile 方法不起作用 - Flutter - firebase_auth updateProfile method is not working Flutter firebase_auth signInWithCredential 不适用于 android - Flutter firebase_auth signInWithCredential is not working on android Dart Flutter 顺序 firebase_auth 错误 - Dart Flutter sequential firebase_auth errors Flutter&Firebase-与firebase_auth一起使用firebase_storage - Flutter & Firebase - using firebase_storage along with firebase_auth 如何从 firebase_auth 测试“signInWithEmailAndPassword” - How to test "signInWithEmailAndPassword" from firebase_auth Firebase_auth 无法在 flutter [firebase_auth: ^0.16.1] 上构建发布 apk - Firebase_auth cannot build release apk on flutter [firebase_auth: ^0.16.1] Flutter 和 Firebase:任务 ':firebase_auth:compileDebugJavaWithJavac' 执行失败 - Flutter and Firebase: Execution failed for task ':firebase_auth:compileDebugJavaWithJavac' 在保留 StreamProvider 的同时,无法将 Flutter Firebase_Auth 从版本 0.15 更新到 0.18 - Can't update Flutter Firebase_Auth from version 0.15 to 0.18 while keeping the StreamProvider
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM