4g或其他移动连接上的Firestore?

时间:2018-12-22 23:31:04

标签: firebase flutter google-cloud-firestore

我使用启用了持久性的Cloud Firestore 0.8.0插件构建了Flutter应用程序。 当我连接到wifi时,数据会实时更新。 但是,当我连接到4g /移动数据时,它根本没有更新。 这是故意的,还是我必须更改一些内容?

这是我的pubspec

dependencies:
  flutter:
    sdk: flutter
  flutter_localizations:
    sdk: flutter

  #firebase
  firebase_core: "0.2.5+1"
  firebase_analytics: "1.0.6"
  cloud_firestore: "0.8.0"
  firebase_remote_config: "0.0.6+1"
  #firebase
  shared_preferences: "^0.4.2"
  rxdart: "^0.18.1"
  url_launcher: "^3.0.3"
  cached_network_image: "0.5.0"
  http: "^0.12.0"
  intl: "^0.15.6"
  fluro: "^1.3.4"
  flutter_list_drag_and_drop: "^0.1.6"
  flutter_statusbarcolor: "0.1.3"
  device_info: "^0.3.0"
  share: "^0.5.3"
  palette_generator: "^0.1.1"
  connectivity: "^0.3.2"
  flutter_advanced_networkimage: "^0.3.11"
  device_calendar: "^0.0.7"
  flutter_local_notifications: "^0.4.2"

如果您想知道为什么我不使用最新版本的firestore,那是因为我遇到了此错误

flutter app:transformClassesWithMultidexlistForDebug

只有降级才有效

0 个答案:

没有答案