Open andrewga opened 5 years ago
@andrewga I'm planning to add that feature in near future
@andrewga & @aslanyanhaik , I have tried below code to update user profile icon & username and it works.
func updateUserDetail(strUpdateName: String, strProfileURL: String) {
let ref = Firestore.firestore().collection("Users")
ref.document(UserManager().currentUserID() ?? "").updateData(["name": strUpdateName, "profilePicLink": strProfileURL]) { (err) in
if let err = err {
print("Error updating document: \(err)")
} else {
print("Document successfully updated")
}
}
}
Is it possible to update the users profile Icon and username?