How to Set Up Free WordPress Push Notifications

How to Set Up Free WordPress Push Notifications

The hardest part of owning a website is to attract people back to your site after a while. Even if you have highly useful site content, you must impress and interact with your readers. WordPress Push Notifications helps you to solve this problem.

We'll cover this topic in this article and explain how to do the following:

- OneSignal plugin installation, so you will be able to send WordPress push notifications.

- Creating a OneSignal account.

- Creating push notifications.

- Editing plugin settings.

But before we get started, we'll cover what the term WordPress push notification means and what its advantages are. Next, we'll talk about OneSignal notification plugin you can use.


Push Notifications Basics

WordPress push notifications are notification messages that appear on your screen and let you know when something happens on your device. For example, when you receive an email, you will see push notifications on both your smartphone and computer. They are not as annoying as self-popping internet ads on time, and you can adjust them as you wish.

In the past, push notifications were limited to apps and system updates only. However, it has become a more common usage area for websites.

How To Setup OneSignal For WordPress Push Notifications

In this guide, we will be using OneSignal as a plugin. Although this plugin is not the only plugin for WordPress push notifications, it is ideal for getting started and has multi-browser support.

OneSignal Plugin Installation

Let's start with the installation of the plugin you need. Open the WordPress admin panel and go to the Plugins tab. Click on the Add new option and search for OneSignal in the search bar on the screen, install the relevant plugin and activate:


When the plugin is activated, a new tab called OneSignal Push will appear in your admin panel. After opening this tab, you will reach a screen with the steps you need to follow. Don't worry, we'll follow these steps with you, so you don't need to be too careful for now, just remember the location of the Configuration tab because we'll be here in a minute.

Creating a OneSignal Account

You also need a free OneSignal account for the plugin to work. Open the platform's homepage and click the GET STARTED button next to the Web Push:


You can register using your accounts on various social media platforms or open a new account using your email address. Now go ahead and complete the account creation process:


After the transaction is complete, the platform will ask you to verify your email address. After the verification process, you can access the OneSignal admin panel.

Create a Push Notification Application

In addition to allowing you to send web push notifications, OneSignal also supports mobile application and email services. This means you need to specify exactly what you want to use the platform for. To get started, open your OneSignal admin panel and click the Add a new app button:


OneSignal will ask you to give your app a name for internal verification. We chose WordPress Push Notifications as the name, but you are free to choose the name you want. The service will then ask you which notification types you want to edit. Select the option named Web Push:


Now you have to choose what kind of integration you want to use. Click on the WordPress Plugin or Website Builder button and choose WordPress from the options below:


Finally, scroll down to the bottom of the page and enter your site's information, including URL and name. If you wish, you can set an icon for your site to be displayed in push notifications, but this step is not mandatory:


In either case, be sure to indicate whether your site uses HTTPS. Then click the Save button to save and go to the next step.

OneSignal Plugin Settings

After saving your settings in OneSignal panel, you will see a new screen showing APP ID and API KEY information:


Keep this tab open for a while, as you'll be back soon. Open the WordPress admin panel and click the OneSignal Push tab to open the Configuration screen. Here you will see three different fields, one for App ID, another for API Key and the last one for your app's tag. Enter the information on the previous screen in the first two fields:


The application tag is the name you specified in the previous step. In our example, this tag was created as WordPress Push Notifications.

After filling all the fields, we need to go down the screen and make a few other settings. Find the section named Prompt Settings & Subscription Bell, where you can set whether the plugin should automatically offer subscription to new users:


If you scroll down, you will see the section where you can change the text of your subscription message:


Further down there is another section called Welcome Notification Settings. By default, OneSignal automatically sends a 'Welcome' message when someone subscribes to your site. From this section, you can remove this message or change it as you wish:


Finally, find the section called Automatic Notification Settings. Here you can set whether the plugin should automatically notify you every time you post a new post:


In most cases it is okay to leave this setting on, especially if you post one or two posts a week. However, if you are posting content daily, push notifications can become unwanted notifications.

If you do not leave automatic push notifications turned on, you can have a notification sent from within the WordPress editor every time you are about to publish a new post. This way, you have full control over which posts can and cannot send WordPress push notifications.

Don't forget to save the plugin settings, and that's it! Now when someone visits your website, they will see a OneSignal window where they can subscribe to your notifications. If they refuse, the message won't appear again, so you won't bother uninterested visitors.

WordPress push notifications feature is a great way to keep your subscribers up to date. The problem is that WordPress doesn't have push notification functionality built in. However, of course, this is not something that cannot be handled with a plugin. We recommend the OneSignal plugin that can be installed in just a few steps. However, you can also choose different plugins such as PushEngage Web Push Notifications or Push Notifications for WordPress by PushAssist.