I have been using iOS client https://github.com/robbiehanson/XMPPFramework
successfully install ejabberd on client side and enable the archive mode on server, able to send and receive message.
My problem is how to get older messages and sync to my local core-data. I have read the framework support and it partially support XEP-0136.
I will able to make any custom APIs from server to fetch the messages and sync on the local. But i did not get any common message id or so on that basis i will sync.
If anyone has idea about syncing. please let me know.