Project

General

Profile

Support #415

pubsub manager getAffiliations error?

Added by Anonymous over 14 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
XMPP
Target version:
-
Start date:
02/16/2012
Due date:
% Done:

0%

Estimated time:
Close

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

log.txt (14 KB) log.txt Anonymous, 02/16/2012 08:39 AM
#1

Updated by Frédéric Barthéléry over 14 years ago

  • Tracker changed from Bug to Support
  • Description updated (diff)
#2

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.

#3

Updated by Frédéric Barthéléry almost 14 years ago

  • Status changed from New to Feedback
#4

Updated by Frédéric Barthéléry over 13 years ago

  • Status changed from Feedback to Resolved
#5

Updated by Frédéric Barthéléry over 13 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF