What is VAPID and why is it useful?

The abstract of the VAPID specification explains everything: An application server can voluntarily identify itself to a push service using the described technique. This identification information can be used by the push service to attribute requests that are made by the same application server to a single entity. This can used to reduce the secrecy … Read more

What is the difference between Push API and Server Sent Events?

The Push API allows the server to send a notification to a client even when your site is not open, because it relies on service workers. SSE (or WebSockets) work as long as the user is using your site. There are some examples (with documentation) in the Web Push section of the ServiceWorker Cookbook that … Read more

Asp Net Core Web Push Notifications

The node library you mention has been ported to c#: web-push-csharp. Here’s a simplified usage example taken directly from their site: var pushEndpoint = @”https://fcm.googleapis.com/fcm/send/efz_TLX_rLU:APA91bE6U0iybLYvv0F3mf6uDLB6….”; var p256dh = @”BKK18ZjtENC4jdhAAg9OfJacySQiDVcXMamy3SKKy7FwJcI5E0DKO9v4V2Pb8NnAPN4EVdmhO…………”; var auth = @”fkJatBBEl……………”; var subject = @”mailto:example@example.com”; var publicKey = @”BDjASz8kkVBQJgWcD05uX3VxIs_gSHyuS023jnBoHBgUbg8zIJvTSQytR8MP4Z3-kzcGNVnM……………”; var privateKey = @”mryM-krWj_6IsIMGsd8wNFXGBxnx……………”; var subscription = new PushSubscription(pushEndpoint, p256dh, auth); var vapidDetails = … Read more

Chrome Push Notification: This site has been updated in the background

Short Answer: You should use event.waitUntil and pass a promise to it, which returns showNotification eventually. (if you have any other nested promises, you should also return them.) I was expriencing the same issue but after a long research I got to know that this is because delay happen between PUSH event and self.registration.showNotification(). I … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)