Easier push notifications with FCM, real-time translation, and more
Highlight
Push notifications with Firebase Cloud Messaging
Want to keep your users engaged even when they're away from your chat? Learn how to set up web push notifications with Firebase Cloud Messaging (FCM) in TalkJS. Lucy Keer offers a step-by-step guide for adding push notifications for your website or app.
Overview of changes
Added
- Added the option to set a
referencedMessageId
when importing messages with the REST API. - Added a hook that triggers an event when a message is translated in real-time. The event includes the message ID, original message text (
text
), detected language, and the translated message text (translatedText
). This way, you can store both the original and translated versions of the message.
Fixed
- Fixed an issue where, in the Realtime API, publishes would not be received correctly if the conversation ID of the conversation you’re subscribed to contained special characters.
- Fixed a bug where notifications didn’t pick up correctly on edits to a message text.
New resources
Real-time message translation for chat apps
Real-time chat translation reduces language barriers and allows you to offer global support. Follow this guide by Chris Meyns to set up real-time message translation for your website or app.
Check out real-time translation
Code samples
Want to add custom features to your chat? Refresh your chat UI? Use code samples! Whether you're building with regular JavaScript, React, Angular, Flutter, or other popular frameworks, you’ll find a wide range of ready-to-use examples. From integrating AI chatbots to adding custom features like GIF pickers or polls, we've got you covered.
👋 Thoughts? Questions? Get in touch.
✨Follow TalkJS on 𝕏 and LinkedIn to stay up to date.
👩🏾💻We’re hiring! Check out our jobs page.