powered by Jive Software

Capture "subscribed" response when user accepts subscription request

  • Smack version : 4.2.1

I am working with presence subscriptions in my app. I have been able to know when someone subscribes to be trough the SubscribeListener Interface. However when I send a subscription request, I would like to know when the counterpart sends me a “subscribed” Presence so I can do proper handling in my client. The docs haven’t been able to help so far. Would appreciate any input.

I seem to recall that you’d have to use the PresenceListener for that purpose.

You want Roster.addPresenceEventListener(PresenceEventListener).

1 Like

Had totally missed this :confused: