Skip to content Skip to sidebar Skip to footer

How To Shorten Firebase Storage Download Retrying Period On Network Error

I have basic working code for downloading file from Firebase storage. String key = 'gs://.../test.jpg'; File file = new File(getCacheDir() + File.separator + 'test.jpg'); Firebas

Solution 1:

Yes, you can configure the timeout for uploads, downloads, and other operations using the setMaximum{OPERATION}RetryTimeMillis() methods:

FirebaseStorage storage = FirebaseStorage.getInstance();
storage.setMaxDownloadRetryTimeMillis(60000);  // wait 1 min for downloads
storage.setMaxOperationRetryTimeMillis(10000);  // wait 10s for normal ops
storage.setMaxUploadRetryTimeMillis(120000);  // wait 2 mins for uploads

See the reference docs for more,


Post a Comment for "How To Shorten Firebase Storage Download Retrying Period On Network Error"