Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/firebase/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Firebase 有没有可能在登录谷歌后获得用户的电话号码_Firebase_Ionic Framework_Firebase Authentication_Firebaseui_Google Login - Fatal编程技术网

Firebase 有没有可能在登录谷歌后获得用户的电话号码

Firebase 有没有可能在登录谷歌后获得用户的电话号码,firebase,ionic-framework,firebase-authentication,firebaseui,google-login,Firebase,Ionic Framework,Firebase Authentication,Firebaseui,Google Login,我正在使用firebaseui以google登录方式登录用户。我正在获取所有其他详细信息,但phoneNumber返回空值。谷歌是否允许在谷歌登录后获取电话号码?或者我应该通过电话认证来获取用户的电话号码吗 提前感谢仅当您使用电话号码登录Firebase时才会填充。根据该文件: 如果用户没有链接到帐户的电话凭据,则此值为空 Firebase身份验证不会从用户的Google帐户请求电话号码

我正在使用firebaseui以google登录方式登录用户。我正在获取所有其他详细信息,但phoneNumber返回空值。谷歌是否允许在谷歌登录后获取电话号码?或者我应该通过电话认证来获取用户的电话号码吗 提前感谢

仅当您使用电话号码登录Firebase时才会填充。根据该文件:

如果用户没有链接到帐户的电话凭据,则此值为空

Firebase身份验证不会从用户的Google帐户请求电话号码