Firebase/Realtime DB
DB의 child의 세부 항목 UPDATE하기
스텝바이스텝안드로이드
2021. 5. 15. 14:39
database.child("users").child(uid).child("customers").child(customerKeyValue)
.child("customerMemo").setValue(binding.memoEt.text.toString().trim()).addOnSuccessListener {
mShowShortToast("성공")
}.addOnFailureListener {
mShowShortToast("실패")
}
* 가끔 boolean 타입이나 int 타입은 firebase rdb에 수정이 안 되는 경우가 있다. (사실 거의 대부분)
그럴 때는 .toString으로 보내주자