강의

멘토링

커뮤니티

Inflearn Community Q&A

choidaehwan92822002's profile image
choidaehwan92822002

asked

[Beginner Edition] Learning Android Kotlin by Building 8 Apps

Load bookmark information from the database

.push()가 .child() 보다 앞에 가면 안되는거였군요..

Written on

·

215

0

viewBinding.btnSave.setOnClickListener {
    myBookmarkRef
        .child(Firebase.auth.currentUser!!.uid)
        .push()
        .setValue(model)

    Toast.makeText(this, "저장되었습니다", Toast.LENGTH_SHORT).show()
}
myBookmarkRef
        .push()
        .child(Firebase.auth.currentUser!!.uid)
        .setValue(model)

항상 바로안따라하고 강의먼저 듣고, 써놓은거 바탕으로 과거에 했던거까지 응용해서 제 코드에 넣는방식으로 공부했는데 이번에 제멋대로 아래처럼 하다가 북마크가 안떠서 2일동안 왜안될까 고민했네요 ㅠㅠ

아무튼 혹시라도 다른분들도 북마크 안뜨시면 이거 한번 확인하면 좋을거같습니다.

androidkotlinfirebase

Answer 1

0

bokchi님의 프로필 이미지
bokchi
Instructor

수강팁 공유 감사합니다 :)

choidaehwan92822002's profile image
choidaehwan92822002

asked

Ask a question