Closed Miraj98 closed 3 years ago
This is unrelated to xmpp.js. Please seek help with the xmpp community. A few things you can try:
Sure will try out the above suggestions and seek help from the xmpp community if problem is still unresolved. Just a quick question regarding the last suggestion. How to enable message archiving management on client? Do I need to set some configuration when calling client(...)
in React Native?
I am using xmpp.js with React Native and I need some advice regarding its usage. I'll start by explaining the problem we are facing.
Problem: Messages are being dropped when client is not online
Possible reasons: Probably we are not doing stream management correctly or there is some server side issue regarding archiving of messages until the required client comes online
Problem in detail: Suppose client A and client B are online. Now client A kills the app. Client B sends a message almost immediately after. This message is not received by client A even when it comes online after sometime and reconnects with the server. Here is the error message logged on the server when the server tries to send the message
Here is the connect logic on the client (React Native):
The connection is disconnected in
App.js
as follows: