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
Post a Comment