This below code i used to retrieve data from firestore
it works good in desktop
myfirebasedb=[]
await db.collection("myfirebasedb")
.where("date", ">=",moment(payload.from_date).format('DD-MM-YYYY'))
.where("date", "<=",moment(payload.to_date).format('DD-MM-YYYY'))
.get()
.then((querySnapshot) => {
myfirebasedb=_.map(querySnapshot.docs,(doc)=>{ return {firebase_id:doc.id,...doc.data()}})
})
.catch((error) => {
reject(error)
console.log("Error getting documents: ", error);
});
See the docChanges it gives the four objects ,this exactly what i want but same code in capacitor js act like a strange ,i also posted mobile debug image below
Getting empty result here Same code in capacitor js returns nothing
i am only facing when implementing where tag in firestore it gives empty result in capacitor js but desktop works what i want.
my firebase data
updated:date filter works if i put single where in mobile
await db.collection("myfirebasedb")
.where("date", ">=",moment(payload.from_date).format())