Skip to main content

Integrate Firebase on the client application

Set up your client application to receive push notifications

The client application needs to integrate with Firebase and add the following two plugins:

  1. Firebase Cloud Messaging: Enables push notifications. You can follow the setup guide here.
  2. Google Analytics: A standard Google Analytics integration ensures that basic app-usage data is collected automatically. Follow the integration setup guide here.

Specifically, for push notifications, following events would be tracked automatically:

EventAutomatically triggered...Parameters
notification_dismiss (app)when a user dismisses a notification sent by Firebase Cloud Messaging (FCM) Android onlymessage_name, message_time, message_device_time, message_id, topic, label, message_channel
notification_foreground (app)when a notification sent by FCM is received while the app is in the foregroundmessage_name, message_time, message_device_time, message_id, topic, label, message_channel, message_type
notification_open (app)when a user opens a notification sent by FCMmessage_name, message_time, message_device_time, message_id, topic, label, message_channel
notification_receive (app)when a notification sent by FCM is received by a device when the app is in the background Android onlymessage_name, message_time, message_device_time, message_id, topic, label, message_channel, message_type

A complete list of all the events can be found here.