Firebase Cloud Messaging (FCM) is a cross-platform messaging solution that lets you reliably send messages for free.
Kaspersky IoT Secure Gateway 1000 uses Firebase Cloud Messaging to forward push notifications about events in the form of JSON messages over the HTTPS protocol to the address https://fcm.googleapis.com/fcm/send. The system relays information about its name and the provided topics of push notifications every four seconds to the topic /topics/DevicesandTopics residing in the FCM cloud service.
For example, the system named Device-1 lets you subscribe to push notifications about NewRecord, NewDevice and DeviceUpdate events.
Example of JSON data sent by the system indicating its name and provided topics of push notifications:
|
A push notification about an event is sent to the topic /topics/DeviceName_EntityName_EventType, where:
Example of JSON data sent by the system regarding an event that occurred:
} |
To receive push notifications, you can create your own application that works with FCM. To do so, you will need a google-services.json configuration file and the system name. For detailed information about creating an application to receive push notifications, please refer to the Firebase Cloud Messaging documentation.
To configure the system name for sending push notifications:
For push notifications to be sent correctly, make sure a valid security certificate has been downloaded.