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
| Field | Description |
|---|---|
| Title | Notification title. Maximum length is 35 characters. |
| Body | Notification body. Maximum length is 255 characters. |
| Icon | Absolute 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. |
| URL | Absolute URL address with the http or https scheme used to redirect user after they interact with the notification. |
| Urgency | Level of urgency of the notification. Possible values:
|
| Time to live | Notification time to live in seconds. Allowed values: integer numbers from 0 to 2419200. Default value: |
| Click to close | Determines the notification behavior after it has been shown. Possible values:
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
| Field | Description |
|---|---|
| Push notification | A 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. |
| User | A reference to a record in the User (user) table. The user that will receive the notification specified in the Push notification field. |
| Delivery state | The current delivery state of the notification. Possible values:
|