
Integrate Firebase on the client application
The client application needs to integrate with Firebase and add the following two plugins:
- Firebase Cloud Messaging: Enables push notifications. You can follow the setup guide here.
- 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:
Event | Automatically triggered... | Parameters |
---|---|---|
notification_dismiss (app) | when a user dismisses a notification sent by Firebase Cloud Messaging (FCM) Android only | message_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 foreground | message_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 FCM | message_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 only | message_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.