Search code examples
androidfirebasefirebase-realtime-databasefirebaseui

FirebaseRecyclerAdapter checking if query completed successfully


I'm using the FirebaseRecyclerAdapter (part of FirebaseUI) to load Firebase data into a RecyclerView, but no where in the documentation or online can I find a way to detect if it failed. For example, if a user has a slow connection or no connection at all and the query failed to complete, how could you detect that? Even in the sample code they have doesn't seem to do any error checking with that.


Solution

  • Firebase Realtime Database queries don't fail, except for lack of permission to read the location of the query. Listeners will silently retry until a connection is established.