How to create web push notifications for blogger and wordpress in hindi

- July 12, 2019

Web-Push Notifications Website Me Kaise Lagaye


 Hi Friends kesy hai ap sub umeed karta ho ap sub theak ho gye dosto aj hum ap ka liye bhot zabardast post lye kre aye hai dosto agr ap bi blogger yah wordpress per kam karty hai or ek website chlete hai or ap chete hai ka ap ka viewers tak apka articles us time chlye jye  tu dosto aj hum apko is post mein batye gye kesy ap jub bi koi new articl post karye tu us time he ap ka viewer ko pta chle jye tu dosto yeh sub Webpush Notification se possible ho ga tu agr ap bi apny blogger website ya wordpress per web push notification lgna chete hai tu articl ko pura read krna or ap humri video ko bi dhk saktye hai.

Blog/website me web push notification kaise add kare

1.BLOGGER

1.Dosto apne sub se phyle blogger ka dashboard per jana hai or layout ko open kre lena hai
notification kaise lgye website mein


2.jub ap layout per click krny ka bad apne Add a Gadget per click krna hai jasa apko photo mein nazar ay rha hai.
WebPush Notifications Website Me Kaise Lagaye




3.Jub add a gadget per click krye gye tu ek new window apka samne ay jye gi jasa photo mein nazer ay rha hai apne html/java script per click krna hai.


4.html/java script krne k bad  ab apne wo script is jaga paste kre ka save ka button per click kre dena  jasa apko photo mein nazar ay rha hai.

5.Ab save arrangement per click krna hai

                                                             


Bus dosto ab apki site per webpush notification aye gya jub koi accepte karye ga tu jub bi ap new post karye gye tu us ko us time he notification chala jye ga or apki tarffic bi bahrye gi  or jo wordpress use kartye hai wo apne hml mein jya kare paste kare dey script ko udr bi chl jye ga script nechy hai ap copy kre ka ly ja sakty hai...


<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>

is ko copy kre lye.

Thanks for visiting please share this articl..
Advertisement