skip to Main Content

How can I get a specific data in Firebase (Kotlin)

I need to retrieve the "administrator" value from Firebase This is the code I use: FirebaseDatabase.getInstance().getReference("/restaurants/$restaurantUID/administrator") .get().addOnSuccessListener { Log.d("key", it.toString()) } The result in the log is this though: 2022-09-05 17:07:32.271 2885-2885/com.example.menuapp D/key: DataSnapshot { key = administrator, value =…

VIEW QUESTION
Back To Top
Search