processone/xmpp-messenger-ios

Carbon messages are not storing in XMPPMessageArchivingCoreDataStorage XEP-0280

Opened this issue · 0 comments

I implemented carbon messaging as my project supports multi logins from different devices.
I used this code to implement XEP-0280.

xmppMessageCarbons = XMPPMessageCarbons(dispatchQueue: DispatchQueue.main)
xmppMessageCarbons?.activate(xmppStream!)
xmppMessageCarbons?.autoEnableMessageCarbons = true;
xmppMessageCarbons?.addDelegate(self, delegateQueue: DispatchQueue.main)

Now I am getting carbon message in func xmppMessageCarbons(_ xmppMessageCarbons: XMPPMessageCarbons, didReceive message: XMPPMessage, outgoing isOutgoing: Bool) but the issue is I am not able to save that carbon message in XMPPMessageArchivingCoreDataStorage.
If anyone knows how to save carbon messages in XMPPMessageArchivingCoreDataStorage please help me.