Messages not sent are kept in history with "sending…" state indefinitely
Using the demo APK:
- Start chatting with someone
- Activate airplane mode (no network anymore)
- Send message. Message state is
delivered=yes, state=sending - Kill application
- Disable airplane mode (network available)
- Start application and restart chatting with the previous contact
Expected
Either the pending message is resubmitted, or it is marked as state=failed.
Actual
The message is kept in the list with delivered=yes, state=sending but ChatSDK is not trying to send it anymore.
Hi @bagage,
Currently the SDK does not have an offline mode. This is something on our long list of modifications to add but hasn't been an issue thus far. We find people rarely attempt to send a message while in offline mode so although it can be easily reproduced in test conditions it hasn't been an issue for any of our current apps available using the ChatSDK.
If you want to add this feature we can give you some guidance on how to make the changes, if you then submit a pull request we will check the code and then maintain it going forward.
Simon
Hey @simonsmiley64, I managed to handle it on my own, can close it for now, thanks.