Android Smack MessageEventListener

前端 未结 2 1015

I´m trying to use XMPP´s message event interface. As far as I understand you can mark a message you send with a \'delivery notification requested\' flag and the recipient is

相关标签:
2条回答
  • 2021-01-14 12:43

    You should get a packet-trace of the XMPP connection, either via wireshark or via the smack debug option, to assure that the delivery notifications are really send by the other end of the connection. If not, this would explain why the listeners aren't called.

    Message events in SMACK are done via the now obsolete XEP-22. There is a good chance that the other side does not implement this out-dated mechanism.

    0 讨论(0)
  • 2021-01-14 12:46

    That´s all too confusing. Now I use DefaultPacketExtension and send myself the events I need. That´s far more simple, easy to understand and it works.

    0 讨论(0)
提交回复
热议问题