Right now i am fetching image from Storage of Firebase by using below code :
mStoreRef.child("photos/" + model.getBase64Image())
.getDownl
In the past the firebase used getMetadata().getDownloadUrl()
, and today they use getDownloadUrl()
It should be used this way:
.addOnSuccessListener(new OnSuccessListener() {
@Override
public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {
String image = taskSnapshot.getDownloadUrl().toString());
}
});