Uri downloadUrl = taskSnapshot.getDownloadUrl(); not working
See original GitHub issuegetDownloadUrl() does not seem to exist anymore. Looking at the firebase-documentation it looks like this method is called on the reference now not taskSnapShot. I have tried the following but the image is not uploaded:
StorageReference taskSnapshotStorage = taskSnapshot.getStorage();
Uri downloadUrl = taskSnapshotStorage.getDownloadUrl().getResult();
Issue Analytics
- State:
- Created 5 years ago
- Comments:5
Top Results From Across the Web
taskSnapshot.getDownloadUrl() method not working
Use Firebase storage version 15.0.0. Uri downloadUrl=taskSnapshot.getDownloadUrl().
Read more >UploadTask.TaskSnapshot | Firebase - Google
the session Uri, valid for approximately one week, which can be used to resume an upload later by passing this value into StorageReference#putFile(Uri, ......
Read more >Android – taskSnapshot.getDownloadUrl() method not working
firebaser here This answer is wrong. While it at first may appear to work (since it compiles) the result of getDownloadUrl().toString() is not...
Read more >What do I use instead of .getdownloadurl in android firebase?
Solved: I changed. Java. Uri firebaseUri = taskSnapshot.getDownloadUrl(); to. Java. Task<Uri> firebaseUri = taskSnapshot.getStorage().
Read more >getDownloadUrl is removed / deprecated / not showing / working
getDownloadUrl is removed / deprecated / not showing / working | Android ... (angular bracket) Uri() (angular bracket){ @Override public void ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I faced the same problem but I got the answer
Just add
.getStorage()
infront of.getDownloadurl
to be like this below
LEAVE EVERYTHING IN THAT LINE DONT ALTER JUST ADD
.getStorage()
Try using this