java - Fire base not call onCancelled if timeout or not able to access server -
i using firebase , found , issue firebase not send error timeout or if not able connect server. in case unable provide correct information user issue is.
firebase developers must handle common use-case. did encounter issue?
.addlistenerforsinglevalueevent(new valueeventlistener() { @override public void ondatachange(datasnapshot data) { } @override public void oncancelled(firebaseerror arg0) { }
utilize .info/connected
monitor connection state. firebase works while offline , oncancelled event not going fired because still waiting connection restored message can delivered.
firebase real-time sync platform. cannot keep data in sync without internet access (how local , remote reconciled?). need utilize disk persistence (in beta on ios) or @ least have initial connection things moving. check out offline capabilities details on of these topics.
Comments
Post a Comment