0
votes

I have created an IM app that uses asmack to connect to various xmpp protocols such as google talk and facebook.

Occasionally some messages are lost in transit (both sent and received messages) when switching between Wifi/Data or when you lose signal altogether. Is there any way to retrieve the last received messages for that particular protocol when the app manages to reconnect? I find myself having to constantly check the default messaging app to see if any messages came through while I was disconnected.

Also, how about a way to get obtain delivery confirmation upon sending a message?

Thanks!

1

1 Answers

0
votes

If you use a server that supports XEP-0136: Message Archiving or XEP-0313: Message Archive Management, you'll be able to obtain all messages previously sent.

However, neither Google Talk nor Facebook Chat implements these, and afaik they have no alternative XMPP API for it either.