Hi is there any way to do android xmpp client which will be able to get message receive confirmation (XEP-0184) I read that there is XEP-0184 in smack but normal smack is not working with android(or I can't do it) there is always SASL authentication exception.
相关问题
- Get Offline Messages From XMPP Without Becoming On
- GCM using smack library NoResponseException: No re
- How to implement “last seen at” functionality (lik
- smack api get all public rooms on openfire server
- ejabberd MUC message history
相关文章
- Xmpp chat invisible presence
- Jabber.net on Unity/Android error (No JNI_OnLoad f
- Sending inline images using Smack XMPP
-
How to join multiple rooms by just sending one
- How to get offline message of group chat from Open
- XMPP events on Android
- How to create an account from Smack 4.1
- XMPPFramework - Upload Profile or Avatar Image
Smack received support for XEP-0184 with SMACK-331. You can't use Smack < 4.1 directly under Android, you need Smack 4.1 (or higher).
You can read more about Smack's XEP-0184 API in the javadoc of DeliveryReceiptManager.
Yes this works with normal Smack.
Gradle Dependencies
Prepare the XMPPTCPConnection i.e. before you connect() wire up a handler for when you get a delivery receipt
When sending a message, ensure you include a MessageReceiptRequest
All done
Now, you can tell when a sent message has been received by the other side because the deliveryReceiptId obtained in the Chat.sendMessage(Message) code above will be logged by the onReceiptReceived callback set up earlier.