Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

asmack not getting multi user chat request

I am using asmack library, and facing problem with multiuser chat request.

When sending a conference request, it is not going inside invitation listener, although same code is working with smack library in java.

While debugging it shows that I am receiving the message, but not providing me inside listener.

If anyone of you can help me in this, or at-least tell how to parse the received message which I am getting inside packet listener.

Following is the message :

<message from="[email protected]" to="user2@server">
<x xmlns="http://jabber.org/protocol/muc#user">
    <invite from="user1@server">
        <reason>Please join me in a conference</reason>
    </invite>
</x>
<x xmlns="jabber:x:conference" jid="[email protected]"/>

like image 201
viv Avatar asked Jul 16 '26 13:07

viv


1 Answers

It sounds like the according Providers aren't initialized.

aSmack's Readme did tell you to init the static code of smack, which will initialize the Providers. Did you run the code before doing any XMPP related actions?

like image 154
Flow Avatar answered Jul 19 '26 01:07

Flow



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!