Step by step instructions to add message pop-up to your blog ?
What are push notifications?
Push notifications are used to send information to the user even if they are not visiting your website. These are the message which is displayed on the user’s desktop or on the mobile device.
With the help of push notifications, you can notify your users or subscribers about the new post or content on your blog via a message which is sent from your blog or website. If the subscriber or user allows push notification from your blog then he will receive them whether he has opened the website or not currently. Whenever a new content or post is published, you can send a push notification to your users to notify them about the new content so, even no single user will miss that post or content.
What are the Benefits of WordPress Push Notifications
- Using push notification we will be able to get our customer back to our blog because push notifications are the new way to communicate with your users. In these days due to email marketing, lots of emails are sent to the users, due to lots of email users simply ignore them, or don’t even read them. Push Notification will help you to take your customer or user back to your blog by simply showing the message in front of them.
- Push notifications are shorter in the format, so the customer will easily read them in short span of time.
- The customer has all the facility to snooze the notification or turn them off completely.
- Lots of popular sites or blogs use push notification to notify their customer about new post or content.
How to setup Push Notifications in WordPress with One Signal?
To add message pop-up to your blog utilizing one signal, as a matter of first importance, you need to visit the One Signal site and snap on the begin catch by the Web Push alternative. In the event that you are not signed in, at that point you need to login in the site.
In the dashboard area, you will get all the information about your previous app if you have made. If you don’t have created any app then click on the “Add App” button.
After clicking on the “Add App” button a pop up will be shown, it will be asked your app name to fill in the blank field.
After adding your app name you have to select a platform, there are multiple platforms for an app. Now you click on the “Web Push ” and click on the next button.
Now you have to choose integration for your push notifications. You have to select “WordPress plugin or Website builder” option and after this choose WordPress and scroll down to the next part.
In this step, you have to choose site name, site URL and default Icon URL and click on Save button. Also, there is a toggle button which is confirming if your blog or site is fully HTTP s or not. If not so you can toggle off this button.
Of course after when your site gets fully HTTP s then you can turn it ON.
After clicking on the Save button you will see your App Id and API Key.
This work is done from One Signal website. Now the second part of the Push notification is to add or install a push notification plugin for One Signal.
To install a plugin go to Plugins menu click on Add New button and search for this name “One Signal – Web Push Notifications”.
On the first plugin, you click on Install now. In the wake of introducing the module you need to initiate this plugin in order to use.
Now a new menu is added to the left sidebar of your dashboard in the admin area. Click on the “One Signal Push”
Here in the Account setting part, you have to insert the App id and API key which you got after creating the app on One Signal website.
For adding safari web id go back to the One Signal website and click on the edit button in front of Apple Safari, You will be prompted a popup in the popup you have to insert your blog URL and Icon which is not necessary the moment. The icon can be uploaded after you have a ready 256*256 icon.
When you click once again on the edit icon you will be given your Safari web id and you can copy it and use in the plugin field of safari web id. Keep the rest setting to default and click on Save Button.
To see the new push notification you can check your blog on the new private window and you will be asked to opt-in for push notifications and if you allow you will get new notifications whenever new content or post will be released from the specific blog or website. You can opt in the subscription any time by going to settings of your web browser.