Each Notification ID
collection contain only one document and I want to Iterate all the collections in ToseefShop1
and get the respective document name and fields data.
Data Model:
dbRef.collection("Shop Notifications")
.document("ToseefShop1")
.get().addOnSuccessListener(new OnSuccessListener<QuerySnapshot>() {
@Override
public void onSuccess(QuerySnapshot querySnapshot) {
// Dont know what to do
}
});
It's not a duplicate question. The other question (someone suggested as duplicate to) is about javascript and answers are for Node.js. With no answer accepted. Infact I can not find getcollections() method in firestore Java.