title: Flutter Firestore Offline Database
body: <p>I have a clarifying question about Cloud Firestore and Flutter:
  I am making an app that users can create log entries of sort, which will be saved on Firebase. But they might make up to 30 entries offline, before they have internet connection again.</p>
  <p>And I know that Firestore has an offline feature, with which any created documents can be viewed offline because it is saved in the order of logging, and then synced with the database when internet connection is gained. But it is absolutely crucial that these logs cannot be lost in my app before having a chance of uploading it. Is there a way to ensure that my app will not lose this data before connecting to Firebase again, or should I create a Sembast database on the device, and save a copy of everything, and then check that once in a while against the database?</p>
  <p>Does Firestore have offline contingency for if the phone's battery dies before it could sync with Firestore?</p>
  <p>Or is there another solution I am unaware of?</p>