aksonov / react-native-xmpp

XMPP library for React Native (iOS and Android native support)
BSD 2-Clause "Simplified" License
307 stars 97 forks source link

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

Open deepak-netsoft opened 4 years ago

deepak-netsoft commented 4 years ago

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": "<message to='reciever address' from='sender address' id='81293bee-a1aa-4a58-9fd0-41bbce791289' type='chat'><body>ggg</body><active xmlns='http://jabber.org/protocol/chatstates'/><origin-idxmlns='urn:xmpp:sid:0'>",` "from": "sender address", "body": "ggg", "subject": null, "thread": null }

penna-superlogica commented 3 years ago

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 ?