https://kotlinlang.org logo
Title
u

user

06/19/2022, 6:01 PM
how to save an object in object in real-time database, Firebase (kotlin) I would like to save data into the real-time database of Firebase, but I run into a problem. I've only been working with Kotlin for 1 month, and unfortunately I don't know how to save data to the real-time database in this form, as shown in the picture. My current code is this: data class userData( val username: String, val uid: String, ) database = FirebaseDatabase.getInstance().getReference("Userdata") val user = uid?.let { userData("Test1", it) } if (uid != null) {...