AnsweredAssumed Answered

Openfire and Smack - PEP

Question asked by kvad on Apr 6, 2017

I'm trying to get PEP working. I did setup with pretty much all default settings. Use Smack 4.2.0. Basic code is:


            PEPManager pepManager = PEPManager.getInstanceFor(connection);
            boolean worked = pepManager.addPEPListener(new PEPListener() {
                public void eventReceived(EntityBareJid from, EventElement event, Message message) {
                    // do something 
            if (pepManager.isSupported())
                pepManager.publish(new Item("pepItem1"), "testNode");


But pepManager.isSupported() is false. I tried it with account on and the same code 'almost' works.  pepManager.isSupported() returns true but the I get some error. But this is different issue. Why pepManager.isSupported() is false with Openfile? Am I missing something in setup?


Thank you