taskSnapshot.getDownloadUrl() is deprecated

前端 未结 10 1460
时光说笑
时光说笑 2020-11-27 19:39

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

10条回答
  •  甜味超标
    2020-11-27 20:17

    You can use StorageReference.getDownloadUrl(). Please note that it returns a Task, so you will have to remember to treat it asynchronously like you do any other Task.

提交回复
热议问题