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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -