I intermittently check if there is a new version of a file on Firebase Storage on my app. I use:
val task = ref.metadata
task.addOnSuccessListener
To check the metadata and compare it to my existing download. I have an issue with a leak, where, if the user has no or bad connection it maintains the call. There is no method to cancel the request.
How can I remove the failed request to prevent memory leaks?
from How to cancel Firebase Storage Metadata download Task?
No comments:
Post a Comment