Есть два разных сервиса, один называется firestore, а другой - база данных в реальном времени (это не одно и то же)

аюсь получить доступ к моим данным FireBase для запуска небольшого теста. Я настроил приложение в консоли Firebase и установил правила доступа:

// Allow read/write access to all users under any conditions 
// Warning: **NEVER** use this rule set in production; it allows
// anyone to overwrite your entire database.
service cloud.firestore {
  match /databases/{database}/documents {
    match /{document=**} {
      allow read, write: if true;
    }
  }
}

Тем не менее, я всегда получаю следующую ошибку:

angular.js:14328 Error: permission_denied at /messages: Client doesn't have permission to access the desired data.

в этой строке кода:

var ref = firebase.database().ref().child('messages');

Что мне не хватает?

Ответы на вопрос(1)

Ваш ответ на вопрос