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

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -