powered by Jive Software

Get packetID with IQProvider

I have implemented a Smack client that handles incoming custom IQs using an IQProvider. Unfortunately, once it gets to the IQProvider, I don’t seem to have access to the container packet information such as IQ type and packetID. I see that packetListeners are able to access packet information, but it does not seem to register any of my custom IQ packets, only the normal Openfire ones. Any help would be greatly appreciated. Thanks!

It turned out I had a problem with the IQ provider. In the docs, it says you must leave the parser at the last tag of the child element of the incoming IQ. I had it at the closing IQ tag by mistake, which is why the listener didn’t catch it.

1 Like