Sending notifications from client applications

Материал из SmartPlayer

Description of the Situation

The SmartPlayer development team has improved the model for sending status-based notifications from client applications to the personal account. Now, notifications in the notification center are not received simply in one status and as a continuous stream, but are separated by logic and sent in specific situations.

Logic of Operation

The current implementation works directly with the “Notifications” section in the SmartPlayer personal account.

Example of the “Notifications” section

All received notifications about situations, problems, or errors are sorted in the “Notifications” tab and separated by logic and color indication according to the error type.
Below in the article, there will be a list of errors sent to the notification center for different types of devices (client applications).

Server-side improvement

On the server side, improvements were made in only two areas:

  1. The server application polls the client application at specific time intervals.
  2. If a large number of notifications are sent to the server application from the device (client application), a timeout will be set for sending and receiving error information. This limitation reduces the load on the server application and prevents it from “breaking”.

Error separation on Android devices

On devices running Android OS, the logic for sending error notifications is as follows:

  • error — indicated in red:
    • permission error;
    • AVI error;
    • PDF playback issue;
    • stream playback issue;
    • update errors.
  • warning — indicated in white:
    • device time zone updated;
    • AVI is missing (the application was built without AVI support);
    • advertising content playback issue;
  • info — indicated in blue:
    • update installed.
Example of notifications of different types

If the user needs more detailed information, they can open the expanded error description by clicking the “Details” button.

Example of the “Details” button and error display
Previously, the logic was simpler, and all notifications from the device were placed into the error category and displayed as red notifications.

Error separation on Windows/Linux/Raspberry devices

On devices running Windows/Linux/Raspberry OS, the logic for sending error notifications is as follows:

  • error — indicated in red:
    • time zone error;
    • update error;
  • warning — indicated in white:
    • inaccurate time zone;
  • info — indicated in blue:
    • update completed successfully.

Additional Information

If this article does not help in using the functionality as intended or if questions remain after reading, they can be asked in the “Discussions” section at the top of the page.

Example of the “Discussions” tab on the wiki page

Additional information can be found on the page Как взаимодействовать пользователю с разделом "Обсуждения"