Kaspersky IoT Secure Gateway 1000

Forwarding push notifications

July 25, 2022

ID 188311

Kaspersky IoT Secure Gateway uses Firebase Cloud Messaging (FCM) 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 provided topics of push notifications every 4 seconds to the topic /topics/DevicesandTopics residing in the FCM cloud service.

Example of JSON data sent by the system indicating its name and provided topics of push notifications:

{

  "data": {

    "Device" : "Device-1",

    "Audit" : "NewRecord",

    "TrafficProcessor" : "NewDevice, DeviceUpdate",

  },

  "to": "/topics/DevicesAndTopics"

}

In this case, the system named Device-1 lets you subscribe to push notifications about NewRecord, NewDevice and DeviceUpdate events.

A push notification about an event is sent to the topic /topics/DeviceName_EntityName_EventType, where:

  • DeviceName is the name of the device.
  • EntityName is the name of the entity that registered the event.
  • EventType is the type of event.

    Example of JSON data sent by the system regarding an event that occurred:

    {

      "data": {

        "data" : "Some data about new device",

      },

      "to": "/topics/Device-1_TrafficProcessor_NewDevice"

    }

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.

To configure the system name for sending push notifications:

  1. In the menu in the left part of the web interface page, select the Settings section.
  2. In the Settings section, open the Utilities tab.
  3. Select the Push notifications tab.
  4. In the Device name field, enter the name that will be used by the system to send push notifications.
  5. In the Authorization key field, enter the Firebase authorization key.
  6. Click Save in the lower part of the page to save the changes.

For more detailed information about creating an application to receive push notifications, please refer to the Firebase Cloud Messaging documentation.

Did you find this article helpful?
What can we do better?
Thank you for your feedback! You're helping us improve.
Thank you for your feedback! You're helping us improve.