delight-im / Android-DDP

[UNMAINTAINED] Meteor's Distributed Data Protocol (DDP) for clients on Android
Apache License 2.0
274 stars 54 forks source link

what do when internet connection is lost #89

Closed romaluca closed 8 years ago

romaluca commented 8 years ago

Do the library manage automatically the lost of internet connection? It tries to reconnect or i have to manage this situation?

Thanks

ocram commented 8 years ago

Thanks for your question!

There's some support for this situation built-in already:

  1. It should try to re-connect automatically (here). There's an open issue regarding this feature: https://github.com/delight-im/Android-DDP/issues/62
  2. It should queue all messages that couldn't be sent to the server yet and wait for the connection to be established again, then send everything (here). There's an open issue regarding this feature: https://github.com/delight-im/Android-DDP/issues/61

As you see, this should really be handled by this library, it shouldn't be your task to do this. If things are not working as expected yet, let's fix and improve them.