I guess Kotlin made some changes about downloadURI method.
There is another question already asked before but it's java code, I couldn't convert to Kotlin.
How to use getdownloadurl in recent versions?
So I'm trying to using new one like below,
var storageRef = FirebaseStorage.getInstance().getReference()
val ref = storageRef.child("uploads/profil.jpg")
ref.downloadUrl.addOnSuccessListener {
val temp = it.path
}
From the debug, I can see the download link with "it.uriString" on "temp" variable line. But I don't know how to get this URL from there?
Thanks.