Emojis in ionic chat app aren't well received

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.

Hi , you canโ€™t use emoji like a normal text you should instal emoji-picker

npm i @ionic-tools/emoji-picker --save

https://www.npmjs.com/package/@ionic-tools/emoji-picker

Hi, Thanks for the suggestion.
Actually I coud send some of the emojies like this but not all of them. Iโ€™m using the unicode of the emojies.
And I think that parsing it many times made it lose something but i couldnโ€™t figure it out.

make sure your using the right unicode(the newest version so that all emojis are there) in your backend.
And that the unicode is properly encoded in the transfer s
If you are using mysql you have to use the one with more supported bytes per character

I also have this problem to display emoji in Ionic 3.

I created a chat application where I use emoji, but when I send an emoji it sends an empty message to the reception of the emoji.

Can you tell me how you were able to send and receive the emoji in your application, please?

Here is my question that I posted today on the forum