Skip to content Skip to sidebar Skip to footer

Getdownloadurl() Of Firebase Storage Return The Same And Wrong Link For All The Uploaded Files. How To Fix This?

I am building chat functionality withing an app using firebase. Everything works except for fetching images from storage. The image gets uploaded successfully but the downloadURl s

Solution 1:

The getDownloadUrl() method using taskSnapshot object has changed. So, use

task.getMetadata().getReference().getDownloadUrl().toString() 

instead of -

task.getResult().getStorage().getDownloadUrl().toString()

Post a Comment for "Getdownloadurl() Of Firebase Storage Return The Same And Wrong Link For All The Uploaded Files. How To Fix This?"