Until now, the way to get the url from file on Storage in Firebase, I used to do this taskSnapshot.getDownloadUrl, but nowadays is deprecated, which method I
taskSnapshot.getDownloadUrl
Task task = taskSnapshot.getMetadata().getReference().getDownloadUrl(); task.addOnSuccessListener(new OnSuccessListener() { @Override public void onSuccess(Uri uri) { String photoLink = uri.toString(); } });