• Home
  • Demo
  • Buy Now
RISE - Ultimate Project Manager & CRM
    RISE - Ultimate Project Manager & CRMInstallation & MaintenancePersonalizationSettingsClient ManagementAI AssistantInvoices & PaymentsProjects & TasksTeam & CollaborationProductivity ToolsSales & ServicesRISE ReportsPluginsFAQChange logs
Mailbox PluginLanding Page Builder PluginEasy Backup PluginSquare Payment Method PluginLogin as Client PluginAsset Management Plugin2 Factor Authentication PluginPassword Manager PluginSocial Login PluginGoogle Meet Integration PluginSpreadsheets PluginZoom Integration PluginAuto Attendance PluginWhiteboards PluginDocs PluginBlog Manager PluginWhatsApp Link PluginMicrosoft Teams Integration PluginProperty Management PluginTelegram Notification PluginAWS S3 Integration PluginWhatsApp Notification PluginWasabi Integration PluginBackblaze Integration PluginCloudflare R2 Integration PluginDigitalOcean Spaces Integration PluginAdyen Payment Method PluginbKash Payment Method Pluginiyzico Payment Method PluginJazzCash Payment Method PluginMercado Pago Payment Method PluginMidtrans Payment Method PluginMontonio Payment Method PluginN-Genius Payment Method PluginNagad Payment Method PluginPayFast Payment Method PluginPaysera Payment Method PluginPaystack Payment Method PluginPix Payment Method PluginRazorpay Payment Method PluginRocket Payment Method PluginSSLCommerz Payment Method PluginUPI Payment Method PluginUpay Payment Method PluginXendit Payment Method Plugin
  1. Docs
  2. RISE - Ultimate Project Manager & CRM
  3. Settings

Built in push notifications and live updates

RISE shows new notifications, chat messages and ticket changes without reloading the page. It needs no account or other service. It works on shared hosting and on your own server (VPS, EC2).

Push notifications

Push notifications are on by default. You don't need to set anything up.

Each user allows notifications for your site in the browser once. RISE asks for it after the user gets a notification. After that, the user gets notifications on the desktop or phone, even when RISE is closed.

What you need

  • An https site. Browsers allow push notifications only on https. On http, the notifications show inside the app.
  • The PHP openssl and curl extensions. Most servers have them.
  • A modern browser: Chrome, Edge, Firefox, Safari (macOS, and iPhone/iPad when RISE is added to the home screen), Opera, Brave or Samsung Internet.
  • Web notifications must be on in the user's Notification settings. A user can turn push notifications off with Disable push notification.

Live updates

Open pages update by themselves. You don't need push notifications for this, and it also works on http.

  • The notification and message counts in the top bar.
  • New messages in the open chat box.
  • AI chats in Messages → AI chats, and the team's reply in a client's AI chat.
  • Tickets (for the team and on the client portal), when Enable live ticket updates is on (Settings → Tickets → Settings).

With Web Push, a new notification shows up at once. Other changes show up within a few seconds when a chat is open, and within a minute on other pages.

Low server load

RISE checks for changes with one small request. It is made to stay light, so hosting companies don't see it as unusual traffic:

  • One check per browser. Many open tabs don't make more requests. One tab checks, and all tabs get the result.
  • Only when needed. It checks every few seconds only while a chat is open. On other pages it checks once a minute or less. When nothing changes, it waits longer.
  • Hidden tabs and idle users check only every 2 to 4 minutes. This keeps the user's online status.
  • Errors make it wait longer, up to 5 minutes.
  • The counts are calculated only when something changed.

The time on other pages follows check_notification_after_every in app/Config/App.php (default 60 seconds, from 30 to 300).

Pusher

You can still use Pusher. Go to Settings → Integration → Pusher, turn on Enable Pusher and add your keys. See the Pusher article. Then Pusher sends the push notifications instead of the built-in system. When you upgrade, sites that already use Pusher keep using it.

Security

  • A user gets only their own events. Each check needs the user to be signed in.
  • The notifications are encrypted for each browser. Only that browser can read them.
  • RISE sends push notifications only to the browsers' own push services (Google, Mozilla, Apple, Microsoft).
  • The live updates carry IDs only (message ID, ticket ID). The page loads the content from RISE, which checks the user's access again.

For plugin developers

Send a live event to users. It goes to their open pages, and to Pusher when Pusher is the push service:

use App\Libraries\Live_events;

//user ids (array or comma separated), event name (a-z, 0-9, _), small data (IDs)
Live_events::send(array(1, 5), "my_plugin_update", array("item_id" => 12));

//skip the user who made the change
Live_events::send($user_ids, "my_plugin_update", array("item_id" => 12), $login_user_id);

Listen to it in the browser:

$[removed]("rise:live_event", function (e, event, data, source) {
    if (event === "my_plugin_update") {
        //data.item_id; source = poll or pusher
    }
});

While your page shows something that changes often, ask for faster checks. The condition says if it is still open:

LiveUpdates.watch("my_plugin_board", "medium", function () {
    return $("#my-plugin-board").length > 0;
});

Use fast only for chats. Core events: notification, chat, ai_chat, ticket. The jQuery events rise:chat_message, rise:ai_chat_updated and rise:ticket_updated are triggered as before. Before a notification alert, rise:notification_received (data, seen) is triggered: set seen.handled = true when your page already shows it. After a long break they come with empty data: reload what you show.

Send a push notification to the users' browsers directly (it returns how many browsers accepted it):

use App\Libraries\Web_push;

Web_push::send(array(1, 5), array(
    "title" => "Order shipped",
    "message" => "Order #12 is on the way.",
    "url" => get_uri("my_plugin/orders/12")
));

Send the push notifications with your own service (for example a mobile app). Return true or false when you handled it, or null to let RISE send it:

app_hooks()->add_filter('app_filter_send_push_notification', function ($result, $info) {
    //$info["user_ids"], $info["event"], $info["data"] (title, message, icon, notification_id, url)
    return my_plugin_send_push($info["user_ids"], $info["data"]);
});

Pass every live event to your own realtime service:

app_hooks()->add_action('app_hook_live_event_sent', function ($info) {
    //$info["user_ids"], $info["event"], $info["data"]
});

To allow another push service host, use the filter app_filter_web_push_endpoint_hosts (array of hosts, *.example.com allowed).

App icon badge

When RISE is installed as an app (PWA), the app icon shows the number of unread notifications, the same number as the bell in the top bar. It works on browsers which support app badges (for example Chrome and Edge on desktop, Safari on iPhone and Mac). It is updated while the app is open and when a push notification comes while the app is closed.

The push data has the user's count in badge. In your own push service, you can get the counts like this:

$counts = model("App\Models\Notifications_model")->get_unread_notification_counts(array(1, 5));
//array(1 => 3, 5 => 0)

To show your own number on the icon, set window.riseAppBadge = false in your page script and self.riseAppBadge = false in your service worker script. Then RISE doesn't change the badge.

Service worker scripts

Add your own scripts to the service worker of RISE (for example to handle push messages, notification clicks or the app badge). Don't register a second service worker. Only scripts under your RISE url are allowed:

app_hooks()->add_filter('app_filter_service_worker_import_scripts', function ($scripts) {
    $scripts[] = "plugins/My_plugin/assets/js/service_worker.js?v=1";
    return $scripts;
});

Your script is loaded after the RISE push handlers. If it has an error, RISE still works. Change the ?v= number when you change your script, so the browsers load the new one.

Was this article helpful? Yes No
How can we improve this article?
© 2026 Fairsketch
Home Get Support Buy Now

Delete?

Are you sure? You won't be able to undo this action!
To do