XMPPFramework icon indicating copy to clipboard operation
XMPPFramework copied to clipboard

Setting up Message Carbons

Open vrat28 opened this issue 4 years ago • 0 comments

We are trying to setup Message Carbons using XEP-0280. We have added the following code for that:

  _messageCarbon = [[XMPPMessageCarbons alloc]init];
    [_messageCarbon addDelegate:self delegateQueue:dispatch_get_main_queue()];
    [_messageCarbon activate:_xmppStream];
    [_messageCarbon enableMessageCarbons];

the class is conforming to XMPPMessageCarbonsDelegate and has conformed to two methods:-

- (void)xmppMessageCarbons:(XMPPMessageCarbons *)xmppMessageCarbons willReceiveMessage:(XMPPMessage *)message outgoing:(BOOL)isOutgoing;

- (void)xmppMessageCarbons:(XMPPMessageCarbons *)xmppMessageCarbons didReceiveMessage:(XMPPMessage *)message outgoing:(BOOL)isOutgoing;

I would be glad if someone has help me with debugging the issue. Also XEP 0280 is enabled on the Openfire server. Is there any document which can help how to setup XEPs on iOS.

vrat28 avatar Aug 03 '20 19:08 vrat28