I have this problem with Firebase Storage where Glide can't load images to ImageViews.
Looking at the logcat, I get a continuous stream of:
W/ExponenentialBackoff: network unavailable, sleeping.
W/NetworkRequest: error sending network request GET
these are my firebase dependencies :
implementation 'com.firebaseui:firebase-ui-storage:3.3.0'
implementation 'com.google.firebase:firebase-storage:19.2.0'
implementation 'com.google.firebase:firebase-auth:19.4.0'
implementation 'com.google.firebase:firebase-firestore:21.7.1'
implementation "com.google.android.gms:play-services-auth:18.1.0"
this is the code for glide:
StorageReference generage_ref(String uid, String image_name){
FirebaseStorage storage = FirebaseStorage.getInstance();
StorageReference storage_ref = storage.getReference();
return storage_ref.child(uid+"/"+image_name+".jpg");
}
void load_round(Context context, StorageReference storageReference, ImageView imageView){
GlideApp.with(context)
.load(storageReference)
.circleCrop()
.into(imageView);
}
which I would call as:
load_round(context,
generate_ref("some_uid", "some_image_name"),
imageview)
I tried running my working backup code from ten days ago but I get the same error which was not present back then..
Funny thing is, when I opened my VPN, All the images load just fine. I hope someone can help cause I am truly lost now.