WordPress 

How to add Push notifications to wordpress site using One Signal

  1. First of all, install the OneSignal plugin. Here’s how to do so:
  1. Open your WordPress dashboard.
  2. Navigate to Plugins -> Add New.
  3. Search for “OneSignal” via the search bar.
  4. Once you’ve found OneSignal among the results, click Install Now.
  5. Once it’s installed, click the Activate button.

The plugin will create a new tab in your dashboard called OneSignal Push. Open it, and you’ll see a new page outlining the rest of the steps you’ll need to follow.

Floryday WW

https://clnk.in/qgDb

2. Set Up a OneSignal Account

Now that you have installed and activated OneSignal, you will need to create a OneSignal account to use the plugin. Follow these steps to set up your OneSignal account:

(i) Open the OneSignal home page. The link is provided in your dashboard’s OneSignal tab, under the Setup -> Overview section.

Screenshot of the OneSignal dashboard

(ii) On the homepage, click the Get Started Now button.

Screenshot of the OneSignal homepage

https://clnk.in/qgDX

(iii). Sign up using your email address.

Screenshot of the OneSignal sign up form

(iv) OneSignal will send a confirmation message to your email address. Click the confirmation button included in the email, and you will get access to your OneSignal dashboard.

€ 227.36 for ACGAM B1-402 Portable Treadmill with the coupon: ACGAMB1

3. Create a Push Notification App

Once you’ve created a OneSignal account, OneSignal will prompt you to add your app or website. Follow along these steps to achieve this:

Screenshot of OneSignal's start up page
  1. First, set a name for your app. You will use this name for internal identification purposes.
  2. Choose a platform that you wish to use for this app, which is Web Push
  3. Click the Next: Configure Your Platform button at the bottom of the page to continue to the next step.
  4. This will direct you to the Web Configuration window. Under the Choose Integration section, select WordPress Plugin or Website Builder.
Screenshot of OneSignal's web configuration screen

5. This will expand a selection of supported website builders and content management systems (CMS). Click on WordPress to select it.

6. Scroll down and enter your site name and URL.

Screenshot of OneSignal's site setup form

7. Indicate whether your WordPress site uses HTTPS or not. OneSignal recommends using HTTPS on your domain since HTTP comes with several limitations, including the inability to migrate from OneSignal.

8. Click Save to move on to the next step. 

This section also offers an option to set a notification icon, making the alerts more recognizable. 

Download Movavi Photo Editor

https://clnk.in/qgFz

4. Configure the OneSignal Plugin

After saving the app configuration in the OneSignal dashboard, it’s time to configure the WordPress plugin. You’ll see a new page showing the APP ID and API KEY. Here are the following steps you need to do to configure the WordPress plugin:

  1. Keep the Web Configuration page open. Copy the APP ID and API KEY that are located in the Configure WordPress Plugin section.
Screenshot of the configure WordPress plugin section

On another tab, return to your WordPress dashboard, then navigate to the OneSignal Push -> Configuration section. Paste the APP ID and API KEY to the App ID and REST API Key field, respectively.

Screenshot of OneSignal's configuration screen
Skylum

https://clnk.in/qgFC

  1. In the OneSignal Label field, type in the name you chose during the previous step. In this example, that’s WordPress Push Notifications.
  2. Scroll down to the Prompt Settings & Subscription Bell section. This section provides an option to prompt new users to subscribe automatically. Turn off the toggle if you want users to decide for themselves whether they wish to subscribe or not.
  3. Scroll down further to change the text of your subscription messages. Use the default messages or create custom messages for various actions.
  4. On the Welcome Notification Settings section, you’ll see that OneSignal will send a welcome message via a push notification when someone subscribes to your website. Customize the message or disable it through this section.
  5. Finally, choose whether to send automatic notifications whenever you publish a new post via the Automatic Notification Settings section.
  6. Click Save on your WordPress dashboard and hit the Finish button on your OneSignal dashboard.

Note that it’s best to activate the automatic push notification if you only publish a new post once or twice a week. If you publish a new post daily, your push notifications may begin to feel like spam.

Related posts

%d bloggers like this: