CarbonCopyReceivedListener isn’t working.
carbonManager = CarbonManager.getInstanceFor(connection);
carbonManager.addCarbonCopyReceivedListener(carbonCopyReceivedListener);
Then when I’m sure that the user is connected and authenticated, I called:
try {
carbonManager.enableCarbons();
} catch (XMPPException e) {
e.printStackTrace();
} catch (SmackException e) {
e.printStackTrace();
} catch (InterruptedException e) {
e.printStackTrace();
}
This should log any received carbon stanza:
CarbonCopyReceivedListener carbonCopyReceivedListener = new CarbonCopyReceivedListener() {
@Override
public void onCarbonCopyReceived(CarbonExtension.Direction direction, Message carbonCopy, Message msg) {
Log.d(“carboooooooooooooon”, carbonCopy.getBody());
}
};
I can see the messages (I sent from another client) in the log (both sent and received), but the carboncopylistener isn’t picking up any of the stanzas at all.
I’m using 4.2.0-rc3-SNAPSHOT