DEV
DEV

Reputation: 949

Does Cloud Storage works offline in sync with Firestore

I want to create an app that works offline. But i would like to store the images in Cloud Storage instead of storing it in FireStore database.

App works offline as it uses Firestore. How will it work with Cloud Storage ? Can the Cloud Storage work offline ?

Example: Device is offline. I want to push some text and image. Text goes to firestore and image should go to Cloud Storage. Can this happen ? Can the Cloud Storage Work Offline along with Firestore ?

Upvotes: 2

Views: 568

Answers (1)

Doug Stevenson
Doug Stevenson

Reputation: 317968

Cloud Storage for Firebase does not work offline like Cloud Firestore, and there is no automatic synchronization. The device must be online in order for a file to be uploaded or downloaded. If you start a transfer, and the device goes offline for a while, the transfer will be paused and resumed, but it will not continue if the app is restarted.

Upvotes: 3

Related Questions