I’m working on ionic chat app, where I used the Firebase-cloud-messaging service to push the messages from the sender to the receiver.
I tried to add an emoji picker to my app but not all emojies are received in the correct format by the receiver.
Here are the data format sent between each part :
Client to server (Json object)
Server to FCM server (Json string)
FCM server to client (Json string)
–> Client creates a json object from the received json string
Here is how the emojis are written in the ionic code :
const EMOJIS = "😀 😃 😄 😁 😆 😅 😂 🤣 ☺️ 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😜 😝 😛 🤑 🤗 🤓 😎 🤡 🤠 😏 😒 😞 😔 😟 😕 🙁" +
" ☹️ 😣 😖 😫 😩 😤 😠 😡 😶 😐 😑 😯 😦 😧 😮 😲 😵 😳 😱 😨 😰 😢 😥 🤤 😭 😓 😪 😴 🙄 🤔 🤥 😬 🤐 🤢 🤧 😷 🤒 🤕 😈 👿" +
" 👹 👺 💩 👻 💀 ☠️ 👽 👾 🤖 🎃 😺 😸 😹 😻 😼 😽 🙀 😿 😾 👐 🙌 👏 🙏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚" +
" 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🤳 💅 🖖 💄 💋 👄 👅 👂 👃 👣 👁 👀 🗣 👤 👥 👶 👦 👧 👨 👩 👱♀️ 👱 👴 👵 👲 👳♀️ 👳 👮♀️ 👮 👷♀️ 👷" +
" 💂♀️ 💂 🕵️♀️ 🕵️ 👩⚕️ 👨⚕️ 👩🌾 👨🌾 👩🍳 👨🍳 👩🎓 👨🎓 👩🎤 👨🎤 👩🏫 👨🏫 👩🏭 👨🏭 👩💻 👨💻 👩💼 👨💼 👩🔧 👨🔧 👩🔬 👨🔬" +
" 👩🎨 👨🎨 👩🚒 👨🚒 👩✈️ 👨✈️ 👩🚀 👨🚀 👩⚖️ 👨⚖️ 🤶 🎅 👸 🤴 👰 🤵 👼 🤰 🙇♀️ 🙇 💁 💁♂️ 🙅 🙅♂️ 🙆 🙆♂️ 🙋 🙋♂️ 🤦♀️ 🤦♂️ 🤷♀" +
"️ 🤷♂️ 🙎 🙎♂️ 🙍 🙍♂️ 💇 💇♂️ 💆 💆♂️ 🕴 💃 🕺 👯 👯♂️ 🚶♀️ 🚶 🏃♀️ 🏃 👫 👭 👬 💑 👩❤️👩 👨❤️👨 💏 👩❤️💋👩 👨❤️💋👨 👪 👨👩👧" +
" 👨👩👧👦 👨👩👦👦 👨👩👧👧 👩👩👦 👩👩👧 👩👩👧👦 👩👩👦👦 👩👩👧👧 👨👨👦 👨👨👧 👨👨👧👦 👨👨👦👦 👨👨👧👧 👩👦 👩👧" +
" 👩👧👦 👩👦👦 👩👧👧 👨👦 👨👧 👨👧👦 👨👦👦 👨👧👧 👚 👕 👖 👔 👗 👙 👘 👠 👡 👢 👞 👟 👒 🎩 🎓 👑 ⛑ 🎒 👝 👛 👜 💼 👓" +
" 🕶 🌂 ☂️";
Here is how it’s sent from the sender :
And here is how it’s received by the receiver :
Had anyone encountered this problem before ??
Thanks in advance and I hope my explanation for the problem was clear enough.