aksonov / react-native-xmpp

XMPP library for React Native (iOS and Android native support)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Different Xmmpp.on('message', message) for Android and IOS

deepak-netsoft opened this issue · comments

Hello @aksonov
Thanks for the the library. My issue is Im getting different Xmmpp.on('message', message) for Android and IOS.
While Recieveing Message this is the Format:

IOS : {
"active": "",
"from": "sender address",
"id": "a29bce20-bf0b-423d-93ff-e2a6946de468",
"type": "chat",
"to": "reciever address",
"body": "asasa",
"origin-id": {
"id": "a29bce20-bf0b-423d-93ff-e2a6946de468"
}
}

Android:```
{
"src": "ggg<origin-id xmlns='urn:xmpp:sid:0'></origin-id></message>",
"from": "sender address",
"body": "ggg",
"subject": null,
"thread": null
}

We noticed the same thing and we need to retrieve higher scope properties like "forwarded" and "query-id".

Did you be able to solve this difference between ios and android @deepak-netsoft ?