Home Engineering How do push notifications work in Chatwoot?

How do push notifications work in Chatwoot?

Last updated on Aug 09, 2023

There are two services available for sending push notifications in chatwoot,

  1. The first service involves sending push notifications through a relay server.

  2. The second service involves sending push notifications directly through the Chatwoot server.

The two environment variables

ENABLE_PUSH_RELAY_SERVER

and

ENABLE_PUSH_RELAY_SERVER

will determine the flow of the push notifications.

  • If you have added the FCM_SERVER_KEY variable, the push notification will be sent to your custom-built mobile apps.

  • If you haven't added the FCM_SERVER_KEY variable and ENABLE_PUSH_RELAY_SERVER is true, the push notification will be sent to official mobile apps.

  • If you haven't added the FCM_SERVER_KEY variable and ENABLE_PUSH_RELAY_SERVER is false, the push notification will not be sent to any device.

To make the push notifications work on a custom build, you must configure Firebase. Detailed instructions on how to do this can be found here. Please note that notifications will not work in the official iOS app.

The summary is that you need to either use custom builds for both Android and iOS apps or use the official apps for both platforms.