Firestore中的onSnapshot()问题

时间:2019-04-10 07:17:29

标签: react-native google-cloud-firestore

朋友,我使用firestore开发了一个react native android应用。 onSnapshot()在开发模式下工作正常,但是在生产模式下使用时,它只是不侦听文档的更新。当应用程序关闭时,我在开发模式下注意到了相同的行为。这是我的代码=>

 dbRef.collection(ei).doc(doc.id).onSnapshot({includeMetadataChanges: true},
                  doc => {
     // do something
   }

0 个答案:

没有答案
相关问题