Skip to main content
Version: 1.34.0

Push Notifications

SimpleOne supports sending push notifications to the users' browsers. This functionality is implemented by system logic with the use of SimplePushNotification class methods. Some default parameters can be configured using system properties.

This article describes the tables used in the system to implement this functionality.

Push Notification table


The Push Notification (sys_push_notification) table stores push notifications created by the system logic using the SimplePushNotification class methods.

Push Notification form fields

FieldDescription
TitleNotification title. Maximum length is 35 characters.
BodyNotification body. Maximum length is 255 characters.
IconAbsolute URL address to the icon with the http or https scheme. If the value is not set or set incorrectly, the system uses the value of the push_notifications.default_icon_url system property.
URLAbsolute URL address with the http or https scheme used to redirect user after they interact with the notification.
UrgencyLevel of urgency of the notification. Possible values:
  • Very Low (very-low)
  • Low (low)
  • Normal (normal) – default value
  • High (high)
Time to liveNotification time to live in seconds. Allowed values: integer numbers from 0 to 2419200.

Default value: 86400.

Click to closeDetermines the notification behavior after it has been shown. Possible values:
  • true — the notification remains on screen until the user clicks it or closes manually
  • false — the notification is closed automatically after a period of time set by the browser

If the value is not set, invalid or the URL field does not contain a valid link, this parameter is not set.

Push Notification Recipient table

FieldDescription
Push notificationA reference to a record in the Push Notification (sys_push_notification) table that contains the notification to be delivered to the user specified in the User field.
UserA reference to a record in the User (user) table. The user that will receive the notification specified in the Push notification field.
Delivery stateThe current delivery state of the notification. Possible values:
  • Pending (pending) – default value
  • Queued (queued)
  • Delivering (delivering)
  • Delivered (delivered)
  • No subscriptions (no-subscriptions)
  • Failed (failed)
  • Read (read)