Closed ajaygajra closed 4 years ago
Could be related to https://forum.cometchat.com/t/connectionlistener-shows-connected-when-there-is-no-network-connection/1394/3 where the SDK thinks that it is connected when there is no network connection
I am using the below code for sending messages. It’s not going inside the catch callback when there is no internet or the sendMessage function is failing.
CometChat.sendMessage(textMessage).then(
message => {
console.log("Message sent successfully:", message);
resolve(message);
},
error => {
console.log("Message sending failed with error:", error);
reject(error)
}
);
This has been resolved in v2.0.9
https://forum.cometchat.com/t/comet-chat-failing-and-app-crashing-when-no-network-is-available/1372