Support #415
pubsub manager getAffiliations error?
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
XMPP
Target version:
-
Start date:
02/16/2012
Due date:
% Done:
0%
Estimated time:
Description
hi there
currently I'm trying to implement pubsub on top of Beem. But I'm having problems with the library
here is my code snipplet :
// Get the pubsub features that are supported
DiscoverInfo supportedFeatures = psManager.getSupportedFeatures();
Log.d("bzbz", supportedFeatures.getChildElementXML());
// Get the affiliations for the users bare JID
List<Affiliation> affiliations = psManager.getAffiliations();
Log.d("bzbz2", affiliations.size()+"ss");
I can get the supportedFeatures with ease, no problem. but when I try to get affiliations, (or subscriptions) , the code just won't get past the line. I've tried to enable the Connection.DEBUG_ENABLED and log says that there is no problem with the iq, and actually the affiliations has been retrieved. but there are this line --> "D/SMACK: 02:19:16 PM SENT (1094015360): " that kept on repeating, and blocking the code. (log attached)
how I'm supposed to fix that?
thanks.
Files
Updated by Frédéric Barthéléry over 14 years ago
- Tracker changed from Bug to Support
- Description updated (diff)
Updated by Frédéric Barthéléry about 14 years ago
The debug line "D/SMACK: 02:19:16 PM SENT (1094015360): " is normal. It is just a space sent regularly by smack to keep the connection opened.
You have to register the extensions you use with the ProviderManager. It is done in the BeemService.configure() method. You have to add
pm.addExtensionProvider("subscription", "http://jabber.org/protocol/pubsub" , new SubscriptionProvider());
and add all the required extensions for pubsub.