You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a chat application built with React Native, and we are using React Native Firebase Cloud Messaging (FCM) for notifications.
We have a requirement to support quick actions in notifications, similar to WhatsApp, where users can reply to a message directly from the notification bar without opening the app.
Currently, messages are sent through a socket connection, although we can also use an API for sending messages if needed.
My requirements are:
Always show notifications with a reply action/input field.
Ensure that messages sent from the notification reply action are delivered reliably and never lost.
I looked into using silent notifications to trigger a local notification with a reply action. However, I'm concerned about reliability. If the user has force-quit the app, can a local notification still be shown reliably? I need a solution similar to WhatsApp's implementation.
Could you advise on the recommended approach for implementing this on both Android and iOS, including the most reliable way to handle message delivery from notification replies?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
We have a chat application built with React Native, and we are using React Native Firebase Cloud Messaging (FCM) for notifications.
We have a requirement to support quick actions in notifications, similar to WhatsApp, where users can reply to a message directly from the notification bar without opening the app.
Currently, messages are sent through a socket connection, although we can also use an API for sending messages if needed.
My requirements are:
I looked into using silent notifications to trigger a local notification with a reply action. However, I'm concerned about reliability. If the user has force-quit the app, can a local notification still be shown reliably? I need a solution similar to WhatsApp's implementation.
Could you advise on the recommended approach for implementing this on both Android and iOS, including the most reliable way to handle message delivery from notification replies?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions