Yes. The Firebase Storage client supports resuming downloads. See the Firebase Storage Documentation for downloads ( iOS , Web , Android ).
From there for Android:
uploadTask = mStorageRef.putFile(localFile); sessionUri = uploadTask.getUploadSessionUri();
And then resume:
//resume the upload task from where it left off when the process died. //to do this, pass the sessionUri as the last parameter uploadTask = mStorageRef.putFile(localFile, new StorageMetadata.Builder().build(), sessionUri);
Update (20160809)
One way to handle sessionUri:
- when you create
uploadTask , get sessionUri and save it in the SharedPreferences application. - when
uploadTask completes, remove sessionUri from the SharedPreferences application. - when the application restarts, check if there is a
sessionUri in the SharedPreferences . If yes: resume downloading.
source share