Why are some of my users seeing "Failed to get document because the client is offline"?

Viewed 33

This has been an ongoing problem over the years that Google can't seem to solve. In my case, it happens occasionally. I now have 34 out of 2700 active users who've experienced this bug and setting persistance enabled to true had no effect (it's supposed to be true by default, but I thought I'd try). The only reported problem I've found which was intermittent is this one. In my case, I'm downloading a document and catching it after checking if the operation had been successful:

        mUserDocRef.get().addOnCompleteListener((OnCompleteListener<DocumentSnapshot>) task -> {
        if (task.isSuccessful()) {
            DocumentSnapshot document = task.getResult();
            if (document.exists()) {
               // Do something
                  .
                  .
            } else {
               // Do something else
                  .
                  .
                  .
            }
        } else {
            crashlytics.log("getSettings error" + task.getException().getMessage());
            return;
        }
    });

Does anyone know if Google is actively pursuing this bug? For my users, it's a big deal and needs to be resolved.

0 Answers
Related