我可以在Firebase Android中加载其他用户的个人资料图片吗? [英] Am I able to load another users profile image in firebase android?

查看:56
本文介绍了我可以在Firebase Android中加载其他用户的个人资料图片吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我有其他用户的电子邮件,但我已以其他用户身份登录,是否可以加载其他用户的个人资料图片?

Am I able to load another users profile image if I have their email but I'm logged in as another user?

推荐答案

否,您只能使用Firebase Auth库获取当前登录用户的信息. (我假设这就是您要的内容,因为文档没有明确说明这一点,因此非常令人困惑.)

No, you are only able to get the information for the currently logged in user using the Firebase Auth library. (I'm assuming that's what you're asking because the documentation doesn't say this explicitly, so it is very confusing.)

要支持访问其他用户的用户个人资料图像,您应该使用Firebase数据库或Firebase存储等其他图像来存储图像,然后在以其他用户身份登录时查询这些图像.

To support accessing the user profile image for another user, you should store the image using something else like Firebase Database or Firebase Storage, and then query those when you're logged in as another user.

这是一个相关的堆栈溢出线程:

Here's a related Stack Overflow thread:

Firebase如何获取用户详细信息?

这篇关于我可以在Firebase Android中加载其他用户的个人资料图片吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆