{"id":41729,"date":"2025-10-31T00:26:36","date_gmt":"2025-10-30T22:26:36","guid":{"rendered":"https:\/\/coma.lv\/2025\/10\/31\/how-to-set-up-push-notifications-on-a-wordpress-site\/"},"modified":"2025-10-31T00:26:36","modified_gmt":"2025-10-30T22:26:36","slug":"how-to-set-up-push-notifications-on-a-wordpress-site","status":"publish","type":"post","link":"https:\/\/coma.lv\/en\/2025\/10\/31\/how-to-set-up-push-notifications-on-a-wordpress-site\/","title":{"rendered":"How to Set Up Push Notifications on a WordPress Site"},"content":{"rendered":"\n<p style=\"text-align: left;\">You have probably noticed how popular sites \u2014 Facebook, YouTube or news portals \u2014 send notifications about new publications. These push notifications appear right on the device screen, even if the browser is closed, gently drawing the user&#8217;s attention. Many site owners would like to have such a system but do not know where to start. In this article we will explain in detail how to add push notifications to a WordPress site.<\/p>\n<h2 style=\"text-align: left;\">Why Do You Need Notifications at All?<\/h2>\n<p style=\"text-align: left;\" data-start=\"595\" data-end=\"855\">Push notifications are small messages that appear right on the user&#8217;s desktop or mobile device. They are shown on top of any windows, attracting attention, and a single click is enough for the user to go to your site.<\/p>\n<p style=\"text-align: left;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-36876 size-full\" src=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-102859.jpg\" alt=\"WordPress\" width=\"722\" height=\"492\" title=\"\" srcset=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-102859.jpg 722w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-102859-300x204.jpg 300w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-102859-705x480.jpg 705w\" sizes=\"auto, (max-width: 722px) 100vw, 722px\" \/><\/p>\n<p style=\"text-align: left;\" data-start=\"857\" data-end=\"1281\">Such notifications are great for blogs, online stores or projects with regular publications and promotions. Studies show that users respond to push much more willingly than to email newsletters, and such a system helps retain your audience, bring readers back and increase engagement.<\/p>\n<p style=\"text-align: left;\" data-start=\"1283\" data-end=\"1395\">Now that we understand why notifications are needed, let&#8217;s see how to install them on a WordPress site.<\/p>\n<h2 style=\"text-align: left;\">Setting Up Notifications with OneSignal<\/h2>\n<p style=\"text-align: left;\" data-pm-slice=\"0 0 []\"><a href=\"https:\/\/onesignal.com\/\" target=\"_blank\" rel=\"noopener\">OneSignal<\/a> is one of the most convenient services for web notifications, with a free basic plan. It supports various devices and browsers, such as Chrome, Safari, Firefox, Edge, Opera and others, so it reaches almost your entire audience. The service lets you show subscription prompts, automatically notify about new publications and track user interactions, providing a full notification system without extra hassle.<\/p>\n<h3 style=\"text-align: left;\">Step 1. Create an App in OneSignal<\/h3>\n<p style=\"text-align: left;\" data-start=\"1674\" data-end=\"1918\">It is best to start by registering with OneSignal. After registration you will be asked to create your first app.<\/p>\n<p style=\"text-align: left;\" data-start=\"1674\" data-end=\"1918\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-36866 size-full\" src=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-083422.jpg\" alt=\"WordPress\" width=\"885\" height=\"449\" title=\"\" srcset=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-083422.jpg 885w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-083422-300x152.jpg 300w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-083422-768x390.jpg 768w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-083422-705x358.jpg 705w\" sizes=\"auto, (max-width: 885px) 100vw, 885px\" \/><\/p>\n<p style=\"text-align: left;\" data-start=\"1674\" data-end=\"1918\">Enter any name \u2014 it will be visible only to you. Immediately after that a start screen will open, offering to choose which channels you want to use. Here we are interested in web push notifications, so open <strong data-start=\"1287\" data-end=\"1309\">Push notifications<\/strong>.<\/p>\n<p style=\"text-align: left;\" data-start=\"1674\" data-end=\"1918\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-36867 size-full\" src=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-083719.jpg\" alt=\"WordPress\" width=\"1326\" height=\"503\" title=\"\" srcset=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-083719.jpg 1326w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-083719-300x114.jpg 300w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-083719-1030x391.jpg 1030w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-083719-768x291.jpg 768w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-083719-705x267.jpg 705w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-083719-845x321.jpg 845w\" sizes=\"auto, (max-width: 1326px) 100vw, 1326px\" \/><\/p>\n<p style=\"text-align: left;\" data-start=\"1312\" data-end=\"1692\">OneSignal will ask which platform you want to set up notifications for. Choose <strong data-start=\"1393\" data-end=\"1400\">Web<\/strong>.<\/p>\n<p style=\"text-align: left;\" data-start=\"1312\" data-end=\"1692\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-36868 size-full\" src=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-083759.jpg\" alt=\"WordPress\" width=\"1621\" height=\"667\" title=\"\" srcset=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-083759.jpg 1621w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-083759-300x123.jpg 300w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-083759-1030x424.jpg 1030w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-083759-768x316.jpg 768w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-083759-1536x632.jpg 1536w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-083759-1500x617.jpg 1500w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-083759-705x290.jpg 705w\" sizes=\"auto, (max-width: 1621px) 100vw, 1621px\" \/><\/p>\n<p style=\"text-align: left;\" data-start=\"1312\" data-end=\"1692\">Then a screen with three connection options will appear. The first is for ordinary sites, the second for WordPress and other CMSs, and the third for manual integration via code. Since we are setting up notifications specifically for WordPress, we choose <strong data-start=\"1640\" data-end=\"1691\">WordPress Plugin or Website Builder Integration<\/strong>. After that a list of supported platforms will open \u2014 find WordPress there and click it.<\/p>\n<p style=\"text-align: left;\" data-start=\"1312\" data-end=\"1692\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-36869 size-full\" src=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-084318.jpg\" alt=\"WordPress\" width=\"1569\" height=\"552\" title=\"\" srcset=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-084318.jpg 1569w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-084318-300x106.jpg 300w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-084318-1030x362.jpg 1030w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-084318-768x270.jpg 768w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-084318-1536x540.jpg 1536w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-084318-1500x528.jpg 1500w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-084318-705x248.jpg 705w\" sizes=\"auto, (max-width: 1569px) 100vw, 1569px\" \/><\/p>\n<p style=\"text-align: left;\" data-start=\"939\" data-end=\"1342\">Now you will see a large site setup form. It contains all the parameters the plugin will use later, so fill everything in carefully. Enter the site name as it should appear in OneSignal, then enter the full site address \u2014 it is important to double-check whether the address uses the <em data-start=\"1280\" data-end=\"1285\">www<\/em> prefix, because OneSignal treats it as a separate domain.<\/p>\n<p style=\"text-align: left;\" data-start=\"939\" data-end=\"1342\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-36870 size-full\" src=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-084850.jpg\" alt=\"WordPress\" width=\"1441\" height=\"437\" title=\"\" srcset=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-084850.jpg 1441w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-084850-300x91.jpg 300w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-084850-1030x312.jpg 1030w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-084850-768x233.jpg 768w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-084850-705x214.jpg 705w\" sizes=\"auto, (max-width: 1441px) 100vw, 1441px\" \/><\/p>\n<p style=\"text-align: left;\" data-start=\"1344\" data-end=\"1823\">A little lower there is a block with notification icons. Here you can specify the image that will be used in the notifications themselves. It is worth choosing a clear square icon of 256\u00d7256 pixels so that it looks correct in all browsers. Click <strong data-start=\"255\" data-end=\"271\">Select image<\/strong> to choose a file or upload a new picture. Next to it there is a separate <strong data-start=\"348\" data-end=\"373\">Upload or input a URL<\/strong> field where you can paste a link to an image if it is already hosted on the internet. If you upload the icon through the OneSignal interface, the service will host the file on its own servers \u2014 this reduces the load on your hosting.<\/p>\n<p style=\"text-align: left;\" data-start=\"216\" data-end=\"734\">Below is the subscription prompt section. To configure how the browser will ask for permission to send notifications, click the <strong data-start=\"371\" data-end=\"385\">Add Prompt<\/strong> button or choose an existing prompt \u2014 a pop-up window with the <strong data-start=\"467\" data-end=\"484\">Prompt Editor<\/strong> will open. In it you can choose the look of the prompt, the time it appears and the number of page views after which it is shown.<\/p>\n<p style=\"text-align: left;\" data-start=\"216\" data-end=\"734\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-36871 size-full\" src=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-084953.jpg\" alt=\"WordPress\" width=\"1562\" height=\"884\" title=\"\" srcset=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-084953.jpg 1562w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-084953-300x170.jpg 300w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-084953-1030x583.jpg 1030w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-084953-768x435.jpg 768w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-084953-1536x869.jpg 1536w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-084953-1500x849.jpg 1500w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-084953-705x399.jpg 705w\" sizes=\"auto, (max-width: 1562px) 100vw, 1562px\" \/><\/p>\n<p style=\"text-align: left;\" data-start=\"736\" data-end=\"1093\">The next block is the welcome notification. It is sent right after subscription and helps the user understand that everything works. Here you can change the message text, add a link the user will go to when clicking the notification, configure the display for different platforms and, if you wish, enable or disable showing this notification.<\/p>\n<p style=\"text-align: left;\" data-start=\"736\" data-end=\"1093\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-36872 size-full\" src=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-085351.jpg\" alt=\"WordPress\" width=\"1364\" height=\"547\" title=\"\" srcset=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-085351.jpg 1364w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-085351-300x120.jpg 300w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-085351-1030x413.jpg 1030w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-085351-768x308.jpg 768w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-085351-705x283.jpg 705w\" sizes=\"auto, (max-width: 1364px) 100vw, 1364px\" \/><\/p>\n<p style=\"text-align: left;\" data-start=\"2433\" data-end=\"2671\">At the end there are additional settings: notification click behavior, service worker parameters, Safari options and webhooks. You can leave these fields alone \u2014 they are intended for finer tuning that is needed only in special cases.<\/p>\n<p style=\"text-align: left;\" data-start=\"2673\" data-end=\"3153\">When you are happy with all the parameters, save the changes. After saving, OneSignal will generate an <strong data-start=\"4972\" data-end=\"4982\">App ID<\/strong> and an <strong data-start=\"4985\" data-end=\"4996\">API Key<\/strong>, which you will need at the next stage (you can get them later in the OneSignal app settings, but for convenience and to avoid wasting time we recommend copying them right away and saving them in a safe place).<\/p>\n<p style=\"text-align: left;\" data-start=\"2673\" data-end=\"3153\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-36873 size-full\" src=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-085629.jpg\" alt=\"WordPress\" width=\"941\" height=\"527\" title=\"\" srcset=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-085629.jpg 941w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-085629-300x168.jpg 300w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-085629-768x430.jpg 768w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-085629-705x395.jpg 705w\" sizes=\"auto, (max-width: 941px) 100vw, 941px\" \/><\/p>\n<h3 style=\"text-align: left;\">Step 2. <strong data-start=\"3729\" data-end=\"3785\">Install and Configure the OneSignal Plugin in WordPress<\/strong><\/h3>\n<p style=\"text-align: left;\" data-start=\"5110\" data-end=\"5233\">Now you can go to the WordPress admin area. Install <a href=\"https:\/\/wordpress.org\/plugins\/onesignal-free-web-push-notifications\/\" target=\"_blank\" rel=\"noopener\">OneSignal Web Push Notifications<\/a>. After activation, a new OneSignal settings page will appear in the menu. Open it and you will see the <strong data-start=\"5344\" data-end=\"5354\">App ID<\/strong>, <strong data-start=\"5356\" data-end=\"5367\">API Key<\/strong> fields and the notification display parameters.<\/p>\n<p style=\"text-align: left;\" data-start=\"5110\" data-end=\"5233\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-36878 size-full\" src=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-081406.jpg\" alt=\"WordPress\" width=\"1893\" height=\"620\" title=\"\" srcset=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-081406.jpg 1893w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-081406-300x98.jpg 300w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-081406-1030x337.jpg 1030w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-081406-768x252.jpg 768w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-081406-1536x503.jpg 1536w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-081406-1500x491.jpg 1500w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-081406-705x231.jpg 705w\" sizes=\"auto, (max-width: 1893px) 100vw, 1893px\" \/><\/p>\n<p style=\"text-align: left;\" data-start=\"5408\" data-end=\"5558\">Just copy the values from OneSignal and paste them into the corresponding fields of the plugin. Save the changes \u2014 and the site will be linked to your app.<\/p>\n<p style=\"text-align: left;\" data-start=\"5560\" data-end=\"5610\">That&#8217;s all: the notification system is fully ready.<\/p>\n<h2 style=\"text-align: left;\" data-start=\"5617\" data-end=\"5658\">How to Check That Notifications Work<\/h2>\n<p style=\"text-align: left;\" data-start=\"390\" data-end=\"810\">To see how the subscription works, open your site in another browser where you have not yet given permission for notifications (not in incognito mode \u2014 such sessions do not keep subscribers). Almost immediately an invitation to subscribe will appear \u2014 the very one you configured in OneSignal.<\/p>\n<p style=\"text-align: left;\" data-start=\"390\" data-end=\"810\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-36894 size-full\" src=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-091002-1.jpg\" alt=\"WordPress\" width=\"752\" height=\"248\" title=\"\" srcset=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-091002-1.jpg 752w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-091002-1-300x99.jpg 300w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-15-091002-1-705x233.jpg 705w\" sizes=\"auto, (max-width: 752px) 100vw, 752px\" \/><\/p>\n<p style=\"text-align: left;\" data-start=\"812\" data-end=\"1289\">After you click, the prompt disappears. Sometimes it seems as if \u201cnothing happened\u201d, but in fact the browser has already registered the device and sent the data to OneSignal. To make sure everything went well, log in to your OneSignal account and open the <strong data-start=\"1100\" data-end=\"1120\">Audience \u2192 Users<\/strong> section. A new user will appear here \u2014 with a unique ID, subscription status and browser data. This is a sign that your site has connected successfully and notifications are ready to work.<\/p>\n<p style=\"text-align: left;\" data-start=\"812\" data-end=\"1289\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-36895 size-full\" src=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-19-225343.jpg\" alt=\"WordPress\" width=\"1134\" height=\"313\" title=\"\" srcset=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-19-225343.jpg 1134w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-19-225343-300x83.jpg 300w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-19-225343-1030x284.jpg 1030w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-19-225343-768x212.jpg 768w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-19-225343-705x195.jpg 705w\" sizes=\"auto, (max-width: 1134px) 100vw, 1134px\" \/><\/p>\n<p style=\"text-align: left;\" data-start=\"1291\" data-end=\"1735\">Now you can move on to the most interesting part \u2014 tests. Open the list of apps and choose yours.<\/p>\n<p style=\"text-align: left;\" data-start=\"1291\" data-end=\"1735\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-36896 size-full\" src=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-19-225553.jpg\" alt=\"WordPress\" width=\"598\" height=\"199\" title=\"\" srcset=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-19-225553.jpg 598w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-19-225553-300x100.jpg 300w\" sizes=\"auto, (max-width: 598px) 100vw, 598px\" \/><\/p>\n<p style=\"text-align: left;\" data-start=\"1291\" data-end=\"1735\">Then click the button for creating a new message \u2014 <strong data-start=\"1193\" data-end=\"1208\">New Message<\/strong>, and in the drop-down list choose <strong>New Push<\/strong>. OneSignal will offer several ways to start: a blank template, AI generation or ready-made designs. Choose a suitable one and you will see the familiar notification editor, where you can set the title, the text and the link the user will go to after clicking. The preview updates in real time, so you will immediately see what the notification will look like.<\/p>\n<p style=\"text-align: left;\" data-start=\"1737\" data-end=\"2014\">To send a test message, switch to the <strong>Test &amp; Preview<\/strong> tab.<\/p>\n<p style=\"text-align: left;\" data-start=\"1737\" data-end=\"2014\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-36898 size-full\" src=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-19-230248.jpg\" alt=\"WordPress\" width=\"544\" height=\"67\" title=\"\" srcset=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-19-230248.jpg 544w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-19-230248-300x37.jpg 300w\" sizes=\"auto, (max-width: 544px) 100vw, 544px\" \/><\/p>\n<p style=\"text-align: left;\" data-start=\"1737\" data-end=\"2014\">OneSignal will offer to choose the subscribers to send the test to. If you have never added test devices, instead of a list you will see the message \u201cYou have 0 test subscriptions for the selected platforms\u201d \u2014 in this case click <strong data-start=\"1842\" data-end=\"1868\">Add Test Subscriptions<\/strong>.<\/p>\n<p style=\"text-align: left;\" data-start=\"1737\" data-end=\"2014\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-36899 size-full\" src=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-19-232421.jpg\" alt=\"WordPress\" width=\"694\" height=\"367\" title=\"\" srcset=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-19-232421.jpg 694w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-19-232421-300x159.jpg 300w\" sizes=\"auto, (max-width: 694px) 100vw, 694px\" \/><\/p>\n<p style=\"text-align: left;\" data-start=\"1737\" data-end=\"2014\">A separate tab will open in your browser \u2014 <strong data-start=\"480\" data-end=\"513\">Audience \u2192 Test Subscriptions<\/strong>, where there is again an <strong data-start=\"537\" data-end=\"563\">Add Test Subscriptions<\/strong> button.<\/p>\n<p style=\"text-align: left;\" data-start=\"1737\" data-end=\"2014\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-36900 size-full\" src=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-19-232716.jpg\" alt=\"WordPress\" width=\"1078\" height=\"384\" title=\"\" srcset=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-19-232716.jpg 1078w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-19-232716-300x107.jpg 300w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-19-232716-1030x367.jpg 1030w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-19-232716-768x274.jpg 768w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-19-232716-705x251.jpg 705w\" sizes=\"auto, (max-width: 1078px) 100vw, 1078px\" \/><\/p>\n<p style=\"text-align: left;\" data-start=\"1737\" data-end=\"2014\">Click it and the <strong data-start=\"596\" data-end=\"624\">Audience \u2192 Subscriptions<\/strong> section will open \u2014 this is where all the devices that have already subscribed to notifications from your site are shown. To the right of the entry you need, click the three dots and choose <strong data-start=\"786\" data-end=\"815\">Add as Test Subscriptions<\/strong>.<\/p>\n<p style=\"text-align: left;\" data-start=\"1737\" data-end=\"2014\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-36901 size-full\" src=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-19-233534.jpg\" alt=\"WordPress\" width=\"586\" height=\"295\" title=\"\" srcset=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-19-233534.jpg 586w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-19-233534-300x151.jpg 300w\" sizes=\"auto, (max-width: 586px) 100vw, 586px\" \/><\/p>\n<p style=\"text-align: left;\" data-start=\"1737\" data-end=\"2014\">A pop-up window will appear where you need to enter a name for the test subscription.<\/p>\n<p style=\"text-align: left;\" data-start=\"1737\" data-end=\"2014\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-36902 size-full\" src=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-19-234506.jpg\" alt=\"WordPress\" width=\"768\" height=\"334\" title=\"\" srcset=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-19-234506.jpg 768w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-19-234506-300x130.jpg 300w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-19-234506-705x307.jpg 705w\" sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><\/p>\n<div class=\"Modal__Header-hZkhGq cCBbbN\" style=\"text-align: left;\"><\/div>\n<div class=\"Modal__Footer-hXnrdU bFGFdR\" style=\"text-align: left;\">\n<div class=\"Modal__FooterButtonWrapper-kyiJkN cpfFAG\">After you enter the name and click <strong data-start=\"990\" data-end=\"997\">Add<\/strong>, a notice will appear saying that the test subscription was added successfully. Now you can return to the <strong data-start=\"1104\" data-end=\"1122\">Test &amp; Preview<\/strong> tab and click <strong data-start=\"1132\" data-end=\"1167\">Refresh Test Subscriptions list<\/strong>. After that the test subscription will appear in <strong data-start=\"672\" data-end=\"705\">Audience \u2192 Test Subscriptions<\/strong> and you will be able to use it to send a test notification \u2014 just tick it and click <strong data-start=\"507\" data-end=\"525\">Send Test Push<\/strong>.<\/div>\n<\/div>\n<p style=\"text-align: left;\" data-start=\"1963\" data-end=\"2234\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-36905 size-full\" src=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-20-000241.jpg\" alt=\"WordPress\" width=\"1468\" height=\"346\" title=\"\" srcset=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-20-000241.jpg 1468w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-20-000241-300x71.jpg 300w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-20-000241-1030x243.jpg 1030w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-20-000241-768x181.jpg 768w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-20-000241-705x166.jpg 705w\" sizes=\"auto, (max-width: 1468px) 100vw, 1468px\" \/><\/p>\n<p style=\"text-align: left;\" data-start=\"2016\" data-end=\"2394\">After a few seconds the browser will show the notification. The time it appears depends on how quickly the browser itself processes push messages, but usually the delay is minimal. Click the notification \u2014 it should open the link you specified in the settings. OneSignal will record the fact of delivery and interaction, and you can see this data right in the dashboard (<strong>Delivery \u2192 Sent Messages<\/strong>).<\/p>\n<h2 style=\"text-align: left;\" data-start=\"2631\" data-end=\"2692\">How to Send Notifications in WordPress with OneSignal<\/h2>\n<p style=\"text-align: left;\" data-start=\"2694\" data-end=\"3042\">After you have connected the site and tested the subscription, you can move on to regular work. The OneSignal plugin in WordPress can automatically send notifications every time you publish a new post. For this feature to work, you need to enable the <strong data-start=\"216\" data-end=\"277\">Automatically send notifications when a post is published<\/strong> option in the plugin settings. Now it is enough to click \u201cPublish\u201d, and the plugin will send the message to all subscribers by itself \u2014 no additional actions are required.<\/p>\n<p style=\"text-align: left;\" data-start=\"3044\" data-end=\"3289\">But if you need more control, you can send notifications manually right from the OneSignal dashboard. To do this, log in to your account again and choose the app. In the left menu click <strong data-start=\"335\" data-end=\"360\">Create\u2026 \u2192 Push.<\/strong><\/p>\n<p style=\"text-align: left;\" data-start=\"3044\" data-end=\"3289\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-36930 size-full\" src=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-22-025302.jpg\" alt=\"WordPress\" width=\"276\" height=\"219\" title=\"\"><\/p>\n<p style=\"text-align: left;\" data-start=\"3044\" data-end=\"3289\">After that the <strong data-start=\"291\" data-end=\"310\">Messages \u2192 Push<\/strong> page will open. In the upper right corner there will be a <strong data-start=\"347\" data-end=\"359\">New Push<\/strong> button, which opens the window for creating a new push notification.<\/p>\n<article class=\"text-token-text-primary w-full focus:outline-none [--shadow-height:45px] has-data-writing-block:pointer-events-none has-data-writing-block:-mt-(--shadow-height) has-data-writing-block:pt-(--shadow-height) [&amp;:has([data-writing-block])&gt;*]:pointer-events-auto [content-visibility:auto] supports-[content-visibility:auto]:[contain-intrinsic-size:auto_100lvh] scroll-mt-[calc(var(--header-height)+min(200px,max(70px,20svh)))]\" dir=\"auto\" tabindex=\"-1\" data-turn-id=\"request-69097264-8844-8326-ae4d-a144753e9cba-4\" data-testid=\"conversation-turn-202\" data-scroll-anchor=\"true\" data-turn=\"assistant\">\n<div class=\"text-base my-auto mx-auto pb-10 [--thread-content-margin:--spacing(4)] thread-sm:[--thread-content-margin:--spacing(6)] thread-lg:[--thread-content-margin:--spacing(16)] px-(--thread-content-margin)\">\n<div class=\"[--thread-content-max-width:40rem] thread-lg:[--thread-content-max-width:48rem] mx-auto max-w-(--thread-content-max-width) flex-1 group\/turn-messages focus-visible:outline-hidden relative flex w-full min-w-0 flex-col agent-turn\" tabindex=\"-1\">\n<div class=\"flex max-w-full flex-col grow\">\n<div class=\"min-h-8 text-message relative flex w-full flex-col items-end gap-2 text-start break-words whitespace-normal [.text-message+&amp;]:mt-1\" dir=\"auto\" data-message-author-role=\"assistant\" data-message-id=\"738b6c95-8b05-4fb2-a6f3-04f5b30c7d23\" data-message-model-slug=\"gpt-5-1\">\n<div class=\"flex w-full flex-col gap-1 empty:hidden first:pt-[1px]\">\n<div class=\"markdown prose dark:prose-invert w-full break-words light markdown-new-styling\">\n<p style=\"text-align: left;\" data-start=\"46\" data-end=\"250\" data-is-last-node=\"\" data-is-only-node=\"\">Everything here is configured the same way as in the test notification: you set the title, text and link, and OneSignal immediately shows a preview so it is clear how the message will look in different browsers.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"z-0 flex min-h-[46px] justify-start\">\n<article class=\"text-token-text-primary w-full focus:outline-none [--shadow-height:45px] has-data-writing-block:pointer-events-none has-data-writing-block:-mt-(--shadow-height) has-data-writing-block:pt-(--shadow-height) [&amp;:has([data-writing-block])&gt;*]:pointer-events-auto [content-visibility:auto] supports-[content-visibility:auto]:[contain-intrinsic-size:auto_100lvh] scroll-mt-[calc(var(--header-height)+min(200px,max(70px,20svh)))]\" dir=\"auto\" tabindex=\"-1\" data-turn-id=\"request-69097264-8844-8326-ae4d-a144753e9cba-4\" data-testid=\"conversation-turn-202\" data-scroll-anchor=\"true\" data-turn=\"assistant\">\n<div class=\"text-base my-auto mx-auto pb-10 [--thread-content-margin:--spacing(4)] thread-sm:[--thread-content-margin:--spacing(6)] thread-lg:[--thread-content-margin:--spacing(16)] px-(--thread-content-margin)\">\n<div class=\"[--thread-content-max-width:40rem] thread-lg:[--thread-content-max-width:48rem] mx-auto max-w-(--thread-content-max-width) flex-1 group\/turn-messages focus-visible:outline-hidden relative flex w-full min-w-0 flex-col agent-turn\" tabindex=\"-1\">\n<div class=\"flex max-w-full flex-col grow\">\n<div class=\"min-h-8 text-message relative flex w-full flex-col items-end gap-2 text-start break-words whitespace-normal [.text-message+&amp;]:mt-1\" dir=\"auto\" data-message-author-role=\"assistant\" data-message-id=\"738b6c95-8b05-4fb2-a6f3-04f5b30c7d23\" data-message-model-slug=\"gpt-5-1\">\n<div class=\"flex w-full flex-col gap-1 empty:hidden first:pt-[1px]\">\n<div class=\"markdown prose dark:prose-invert w-full break-words light markdown-new-styling\">OneSignal also lets you manage delivery very flexibly.<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/article>\n<div aria-hidden=\"true\" data-edge=\"true\">\n<p style=\"text-align: left;\" data-start=\"180\" data-end=\"430\">In the <strong data-start=\"188\" data-end=\"200\">Audience<\/strong> block you can choose exactly who to send the message to: all subscribers at once or only specific segments. This is convenient if you need, for example, to address only the active audience or, on the contrary, win back those who have not visited for a long time.<\/p>\n<p data-start=\"180\" data-end=\"430\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-36931 size-full\" src=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-22-031634.jpg\" alt=\"WordPress\" width=\"520\" height=\"336\" title=\"\" srcset=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-22-031634.jpg 520w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-22-031634-300x194.jpg 300w\" sizes=\"auto, (max-width: 520px) 100vw, 520px\" \/><\/p>\n<p style=\"text-align: left;\" data-start=\"775\" data-end=\"1088\">In <strong data-start=\"339\" data-end=\"360\">Delivery Schedule<\/strong> you set the moment of sending. The notification can be sent immediately, scheduled for a specific time or you can choose <em data-start=\"473\" data-end=\"495\">Intelligent Delivery<\/em>, in which the system picks the optimal moment for each user. Note that <em data-start=\"584\" data-end=\"606\">Intelligent Delivery<\/em> is available only on paid plans.<\/p>\n<p data-start=\"775\" data-end=\"1088\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-36932 size-full\" src=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-22-032036.jpg\" alt=\"WordPress\" width=\"381\" height=\"316\" title=\"\" srcset=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-22-032036.jpg 381w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-22-032036-300x249.jpg 300w\" sizes=\"auto, (max-width: 381px) 100vw, 381px\" \/><\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/article>\n<p style=\"text-align: left;\" data-start=\"4092\" data-end=\"4205\">After everything is filled in, click <strong data-start=\"38\" data-end=\"57\">Review and Send<\/strong>. A <strong data-start=\"85\" data-end=\"108\">Review Your Message<\/strong> pop-up window will appear, where you can check all the settings once more.<\/p>\n<p style=\"text-align: left;\" data-start=\"4092\" data-end=\"4205\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-36933 size-full\" src=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-22-032548.jpg\" alt=\"WordPress\" width=\"1288\" height=\"851\" title=\"\" srcset=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-22-032548.jpg 1288w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-22-032548-300x198.jpg 300w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-22-032548-1030x681.jpg 1030w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-22-032548-768x507.jpg 768w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/11\/Ekranuznemums-2025-11-22-032548-705x466.jpg 705w\" sizes=\"auto, (max-width: 1288px) 100vw, 1288px\" \/><\/p>\n<p style=\"text-align: left;\" data-start=\"4092\" data-end=\"4205\">If everything looks correct, click <strong data-start=\"190\" data-end=\"206\">Send Message<\/strong> \u2014 the notification will be sent to the selected audience.<\/p>\n<h2 style=\"text-align: left;\" data-start=\"6109\" data-end=\"6321\">Summary<\/h2>\n<p style=\"text-align: left;\">Push notifications are a simple and effective tool for attracting an audience. They help bring readers back, increase views and quickly announce updates. OneSignal makes this process as convenient as possible: the service lets you automate sending notifications, segment your audience, test messages and track user interactions. Even on the free plan you get a full notification system that greatly simplifies working with visitors and increases audience engagement.<\/p>\n<hr \/>\n<p style=\"text-align: left;\"><em>Our specialization is WordPress website development and maintenance. Contact us for a free consultation \u2014 <a href=\"mailto:vadim@coma.lv\">vadim@coma.lv<\/a>, <a href=\"tel:+37129394520\">+371 29394520<\/a><\/em><\/p>\n<hr \/>\n","protected":false},"excerpt":{"rendered":"<p>You have probably noticed how popular sites \u2014 Facebook, YouTube or news portals \u2014 send notifications about new publications. These push notifications appear right on the device screen, even if the browser is closed, gently drawing the user&#8217;s attention. Many site owners would like to have such a system but do not know where to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":37166,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1225,1407],"tags":[],"class_list":["post-41729","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress","category-tutorials"],"_links":{"self":[{"href":"https:\/\/coma.lv\/en\/wp-json\/wp\/v2\/posts\/41729","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/coma.lv\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/coma.lv\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/coma.lv\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/coma.lv\/en\/wp-json\/wp\/v2\/comments?post=41729"}],"version-history":[{"count":0,"href":"https:\/\/coma.lv\/en\/wp-json\/wp\/v2\/posts\/41729\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/coma.lv\/en\/wp-json\/wp\/v2\/media\/37166"}],"wp:attachment":[{"href":"https:\/\/coma.lv\/en\/wp-json\/wp\/v2\/media?parent=41729"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/coma.lv\/en\/wp-json\/wp\/v2\/categories?post=41729"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/coma.lv\/en\/wp-json\/wp\/v2\/tags?post=41729"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}