powered by Jive Software

Android smack sender Offline

How send message when intrnet connection drop. after disconnecting the Internet, smack stays online for some time and the outgoingMessageListener puts the message in the queue. After the connection is resumed, those messages in the queue are forwarded.after reconnect and authenticated, I can determine which messages were forwarded by listening to addSyncListener packets. How after addSyncListener finishes its work to forward messages that have not been queued? I use sqlite to mark which messages were delivered to the server and which were not. But how to make it so that you first listen to the delivery of messages in the queue and then already which were out of line?
or how clean queue messages after RecconectionManager.authenticated()