I use:
compile "com.google.firebase:firebase-core:9.0.1" compile "com.google.firebase:firebase-storage:9.0.1"
And this is the code that I execute using the device offline (without the Internet):
StorageReference mStorageRef = FirebaseStorage.getInstance().getReferenceFromUrl([MY_URL]); mStorageRef.child("my_file.json").getBytes(Long.MAX_VALUE) .addOnSuccessListener(bla bla bla).addOnFailureListener(more bla bla)
I repeat this message in my log every second :
W/ExponenentialBackoff: network unavailable, sleeping. E/StorageUtil: error getting token java.util.concurrent.ExecutionException: com.google.firebase.FirebaseApiNotAvailableException: firebase-auth is not linked, please fall back to unauthenticated mode.
Is this a bug or an expected behavior? I know that if I am offline, I will not receive the deleted file, but why does the Firebase code try to poll every second?
Note : when reconnecting, it runs a success / failure listener and finishes polling.
source share