I have an *angular 8 app* integrated into firebase chat which uses *Datastore 
Mode database*. I am integrating the same chat into an *angular 13* *app* 
but the new angular/fire library uses firstore API. I have done the 
necessary configurations but I get the following error when I try to 
retrieve messages.

Error:
Firestore (9.8.2): Could not reach Cloud Firestore backend. Connection 
failed 1 times. Most recent error: FirebaseError: 
[code=failed-precondition]: The Cloud Firestore API is not available for 
Firestore in Datastore Mode database projects/xyz/databases/(default).

Code:
loadMessages = (key: any): Observable<any[]> => {
  const parsePhrase = `/issue_chat/${key}/${key}`;
  const chatCollection = collection(this.firestore, parsePhrase);
  return collectionData(chatCollection);
};

My research shows that Firestore in Datastore Mode doesn't support the 
Cloud Firestore API, which is necessary for AngularFire to communicate with 
Firestore.

How do I go about this?

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/58ed4c27-45b4-45fe-bfce-ee11fbaedf5bn%40googlegroups.com.

Reply via email to