powered by Jive Software

How to resume stream when open an application?

Smack version 4.3

Question:
How can resume an open stream from cold start?

Scenario:
App created a success connection, but in a while you turning off wifi or cellular data and close the application. Then someone send a message. Open the wifi about 5 secs and open the wifi or cellular data.

Issue:
After a new connection, the message was not sent by the server.

Can someone give me how to achieve or resolve the issue?

Thanks in advance :slight_smile:

@Flow can you give me some advise?

I’d try to somehow keep the instance of the XMPPConnection alive (eg. by utilizing a sticky background service). That way the connection would try to do a stream resumption when the network is available again.

However, I haven’t done this yet, so I can only guess :smiley:

This topic was automatically closed 62 days after the last reply. New replies are no longer allowed.