Android: Connect Cloud Firestore with Cloud Storage
Im inserting a title and the pictureUrl into Cloud Firestore. I am able to display the title and picture of the recipe. But my problem is that the pictures are mixed up. For example, if I make a burger recipe, it shows the picture of a pizza, but the title of the burger recipe.
This is how I get my pictures:
var pathString: String
FirebaseFirestore.getInstance().collection("recipe").get().addOnSuccessListener {
for(document in it) {
val picture...