I was trying to use downloadUrl function of Firebase and add both addOnSuccessListener and addOnFailureListener. The program ran without error but the function didn’t trigger.
val test = storageRef.child("user/image/1000008988.jpg")
test.downloadUrl.addOnSuccessListener {uri ->
uris.add(uri)
Log.d("UploadSuccess", uris.toString())
}
.addOnFailureListener {
Log.d("UploadSuccess", uris.toString())
}
I know it doesn’t trigger because log cat does not have the log.d that I put into the listener.
Any clue?
I tried getDownloadUrl() but no hope as well.
Yatoshi Hina is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.