I have a simple Firebase data query which was working before iOS14 beta 8
but now it's not reaching the backend. Here is the error
2020-09-10 16:57:07.968391-0400 latitude[1658:257844] 6.32.0 - [Firebase/Firestore][I-FST000001] Could not reach Cloud Firestore backend. Backend didn't respond within 10 seconds.
CODE:
let query = Firestore.firestore().collection("XYZ").whereField("location", isEqualTo: location).whereField("updatedAt", isGreaterThan: timestamp).order(by: "updatedAt").limit(toLast: 1)
query.getDocuments { (snapshot, error) in
if let error = error {
Console.error("the error is \(error.localizedDescription)")
return
}
guard let snapshot = snapshot else {
Console.error("no snapshot")
return
}
let documents = snapshot.documents
Is anyone else having this issue and knows a solution?
but now it's not reaching the backend. Here is the error
2020-09-10 16:57:07.968391-0400 latitude[1658:257844] 6.32.0 - [Firebase/Firestore][I-FST000001] Could not reach Cloud Firestore backend. Backend didn't respond within 10 seconds.
CODE:
let query = Firestore.firestore().collection("XYZ").whereField("location", isEqualTo: location).whereField("updatedAt", isGreaterThan: timestamp).order(by: "updatedAt").limit(toLast: 1)
query.getDocuments { (snapshot, error) in
if let error = error {
Console.error("the error is \(error.localizedDescription)")
return
}
guard let snapshot = snapshot else {
Console.error("no snapshot")
return
}
let documents = snapshot.documents
Is anyone else having this issue and knows a solution?