Using Offline Persistence in Firestore in a Flutter App

前端 未结 3 1009
天命终不由人
天命终不由人 2020-12-29 09:02

I\'m developing a app that uses Firebase\'s Firestore to send data to the web. One of the functions of the app is being able to save data in the device while being offline a

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-29 09:46

    I think the currrent answer is outdated. According to the firebase documentation, offline persistentence is enabled by default for Android and iOS. For the web, it is not.

    In flutter, the firestore implementation is based on the underlying OS. So you're safe on mobile apps, but not with flutter for web.

提交回复
热议问题