Is it possible to send a synchronous request in the Firebase?

前端 未结 4 1443
无人共我
无人共我 2020-12-17 10:51

I\'m using Firebase Android SDK and became interested in sending synchronous request instead of asynchronous. According to the documentation, in any request cal

4条回答
  •  感动是毒
    2020-12-17 11:09

    There is no way to synchronously load data from the Firebase Database.

    While it is common for developers new to Firebase to wish for a synchronous method, it simply doesn't fit with Firebase's data synchronization model. Also see my answer here: Setting Singleton property value in Firebase Listener

提交回复
热议问题