XEPP-infrastructure XEP-0136 in iOS-client

I am working on an iOS chat client application. Now I want to save the chat history on the device and server, I looked at Google and found that I can do this with the XEP-0136 extension. I looked into it, but had no idea how to implement it. If someone used or has any link to a tutorial that can help me, what to share with him.

Now I have activated the message archive module and it seems that I am storing the message, but I do not know where it is stored. Can someone tell me where the archived message is stored on the local device.

Below is the code that I used to activate the module.

XMPPMessageArchiving *xmppMessageArchivingModule = [[XMPPMessageArchiving alloc] initWithMessageArchivingStorage:[XMPPMessageArchivingCoreDataStorage sharedInstance]]; [xmppMessageArchivingModule setClientSideMessageArchivingOnly:YES]; [xmppMessageArchivingModule activate:xmppStream]; [xmppMessageArchivingModule addDelegate:self delegateQueue:dispatch_get_main_queue()]; 

Thanks at Advance

+4
source share
2 answers

I think you can get some kind of solution by seeing this tutorial. Refer to this guide.

http://mobile.tutsplus.com/tutorials/iphone/building-a-jabber-client-for-ios-xmpp-integration/

+1
source

All archived messages will be stored in the XMPPMessageArchiving_Message_CoreDataObject table. Even offline messages too.

+1
source

Source: https://habr.com/ru/post/1502953/


All Articles