Browser notifications reach people while they are working in another tab or window, as long as a tab with your site is still open. They appear as pop-ups or banners in the browser and can announce new content, events, or anything else worth a nudge.
Each browser handles them a little differently: some let people choose which sites may notify them, and some let people change how a notification looks.
Enabling Notification Permissions for Your Website
A browser only shows notifications from a site the person has allowed.
Add a short script to the footer of your site. It turns each Axero notification into a browser notification for anyone who has allowed them. It does not ask for that permission itself; see the note at the end.
To add the script to the footer of your website, follow these steps:
1. Copy the following code:
<script>Publisher.subscribe('notification', function(event, data) { var notification = new Notification(data.FromUserInfoDisplayName + ' ' + data.ActionText, { body: "New Passport notification", tag: 'notification' + data.ID }); notification.onclick = function() { window.open(data.URL); };});</script>
Note: To change the notification's subject line, replace "New Passport notification" in the code above with your own.
Note: To show your own image with the notification, add an "icon" property to the script with the URL of the image. In the example below, replace the address after icon: with the URL of your icon image.
icon:
<script>Publisher.subscribe('notification', function(event, data) { var notification = new Notification(data.FromUserInfoDisplayName + ' ' + data.ActionText, { icon: 'https://yourintranet.com/Assets/Uploaded-Photos/icon.svg', body: "New Passport notification", tag: 'notification' + data.ID }); notification.onclick = function() { window.open(data.URL); };});</script>
2. Go to Control Panel > System > General Settings, open Header and Footer Scripts, and paste the code into the footer script box.
3. Save your changes and refresh any pages you have open.
From then on, anyone who has allowed notifications for your site gets a browser notification for everything that would have reached their bell icon, as long as your site is open in one of their browser tabs.
Note: Neither this script nor Axero asks people for permission. A browser only shows its allow-or-block prompt when a page requests it, and most browsers accept that request only right after the person clicks something on the page. Until someone allows notifications for your site in their browser's settings, nothing appears. Most mobile browsers don't support this kind of notification at all.
is requesting access to a wiki that you have locked: https://my.axerosolutions.com/spaces/5/axero-documentation/wiki/view/92889/browser-notifications
Your session has expired. You are being logged out.