How to create a webPush Notification On Blogger or Wordpress


      Hi friends today i am Going To tech you How to create a webpush notification for your Blogger or Wordpress

Why Use Webpush Notification

Now a day Subscribe by email box is Getting old and people Don't like These Boxes Because No one have time to submit a Email and so on

   So now have developed the web push Notification that allow your users to Subscribe your by Just clicking on allow button so toady we are Going to Use this Script

<script>
// request permission on page load
document.addEventListener('DOMContentLoaded', function () {
  if (Notification.permission !== "granted")
    Notification.requestPermission();
});

function notifyMe() {
  if (!Notification) {
    alert('Desktop notifications not available in your browser. Try Chromium.');
    return;
  }

  if (Notification.permission !== "granted")
    Notification.requestPermission();
  else {
    var notification = new Notification('Notification title', {
      icon: 'http://cdn.sstatic.net/stackexchange/img/logos/so/so-icon.png',
      body: "Hey there! You've been notified!",
    });

    notification.onclick = function () {
      window.open("https://usamabutt789.blogspot.com");   
    };

  }

}
</script>



 How to Install this script



check this video to learn How to Intsall webpush notification script



5 comments

avatar

Hi bro thanks for this great post i really like your blog you are doing good work my bro keep it up also check these articles you may like them

Learn How to create a webpush notification for blogger or wordpress
<------------------------------>
Learn How to disable Right click on blogger or wordpress <------------------------------>
earn money with url shortener with high cpm rates <------------------------------>
Technical usama butt No.1 website for blogger tips and seo tricks

avatar

nice article

avatar

Nice post! This is a very nice blog that I will definitively come back to more times this year! Thanks for informative post. wordpress virus remova

avatar

Thanks dear for your kind comment

Click to comment