【发布时间】:2019-08-10 15:08:04
【问题描述】:
我正在使用 Firebase 进行注册和登录。我可以成功地在 Firebase 中创建帐户,但是当用户想要更改个人资料图片和用户名时,我可以更改个人资料图片但显示名称保持不变,无论我选择的任何名称
这是我正在使用的代码
UserProfileChangeRequest profleUpdate = new UserProfileChangeRequest.Builder()
.setDisplayName("Newusername")
.setPhotoUri(uri)
.build();
我已经使用设置 task.sucessfull 监听器
if (task.isSuccessful()) {
// user info updated successfully
showMessage("Sucessfully changed");
}
我收到已成功更改响应,但是当我返回我的个人资料活动时,只显示新的更新图像,但显示名称保持不变。
这是我正在使用的 firebase 版本
implementation 'com.google.firebase:firebase-auth:11.6.2'
提前感谢您的帮助。
【问题讨论】:
-
这是一个 非常 旧版本的 firebase-auth。考虑更新。
标签: java android firebase firebase-authentication