I am facing a issue with my app, wherein I am displaying the image which is stored in FirebaseStorage
Below is the Code snippet i am using to get the file(file.png):
mFirebaseStorage = FirebaseStorage.getInstance();
mFirebaseStorageRef = mFirebaseStorage.getReference().child("folder/file.png");
And displaying it using Glide as:
ImageView imgView = (ImageView) rootView.findViewById(R.id.imgView);
Glide.with(rootView.getContext() /* context */)
.using(new FirebaseImageLoader())
.load(mFirebaseStorageRef)
.into(imgView);
And I have also Enabled Persistence for Firebase as its required for my other functionality using firebasedatabase.
So once i loggedin/open my app I am gettign this image(file.png) correctly, but when i tried replacing/overwriting this "file.png" on my firebasestorage the new Image is NOT getting reflected in my app.
I understand that as I am using Persist Enabled, firebase is caching the data locally & not making new requests to remote, i even tried loging-out & login again but still its shows the old image & it only resolves when clearing my app's cache.
so, is there any way to resolve this issue?
Thanks :)