ios - XMPP multi device sync with xmpp chat message -


xmpp multi device sync : trying develop messaging application using xmpp. trying implement chat sync on multiple devices per user. able messages on logged devices or first offline device logs in. different devices use different resource full jabber id different.

if using xmppframework in ios, can add xmppmessagecarbons extension

var xmppmessagecarbon = xmppmessagecarbons() xmppmessagecarbon?.autoenablemessagecarbons = true xmppmessagecarbon?.adddelegate(self, delegatequeue: xmppqueue) xmppmessagecarbon?.activate(xmppstream) 

and implement delegates

func xmppmessagecarbons(_ xmppmessagecarbons: xmppmessagecarbons!, willreceive message: xmppmessage!, outgoing isoutgoing: bool) {  }  func xmppmessagecarbons(_ xmppmessagecarbons: xmppmessagecarbons!, didreceive message: xmppmessage!, outgoing isoutgoing: bool) {  } 

Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -