<Why documentt.data.getValue() gives empty string?...
# stackoverflow
u
Why documentt.data.getValue() gives empty string? Please help my to get a value from Firestore I have a Firestore database where "adminData" collection but only single value is essential. I will like to retrieve it from the firebase database and store it in string. Can you please help me with the implementation in android studio using Kotlin? val myString : StringBuffer = StringBuffer() var db = FirebaseFirestore.getInstance() db.collection("adminData").get() .addOnCompleteListener { it -> if(it.isSuccessful) {...