web-push

How can I do push notifications in an HTML5 Web application?

北城以北 提交于 2019-11-27 16:03:08
问题 I have a web application. I want to use the HTML 5 inbuilt notifications API to do push notifications from the server when the user is on a particular page. Is it possible? 回答1: You can do real push notifications with Web apps today in Chrome using Service Workers and PushManager from the W3C Push API. See the article Push Notifications on the Open Web for a step-by-step how-to and code snippets you can use. Here’s a diagram from that article that explains what the UI around it looks like. An

Displaying Same Data Aross Multiple Clients Using Push in Vaadin 7 app

こ雲淡風輕ζ 提交于 2019-11-27 08:47:41
I want to share the same set of data to multiple clients. I need to use Push to automatically update their view on screen. I have read the Question and Answer, Minimal example of Push in Vaadin 7 app (“@Push”) . Now I need a more robust realistic example. For one thing, I know having a never-ending Thread is not a good idea in a Servlet environment. And I don't want each user having their own Thread, each hitting the database on their own. Seems more logical to have one thread alone checking for fresh data in the database. When found, that thread should publish the fresh data to all the users’

Minimal example of Push in Vaadin 7 app (“@Push”)

偶尔善良 提交于 2019-11-27 04:32:08
I want to see the most minimal example of using the new Push technology in Vaadin 7, such as the new @Push annotation. I am having problems getting server-push to work in my app. I would like to try a simple example app before trying to fix my own app. Basil Bourque Simplification Of Example In The Book Of Vaadin The Book Of Vaadin includes a chapter on Push, including an example using Vaadin Charts . Below is my code. While based on that Vaadin Charts example mentioned above, I simplified it by replacing the use of a Chart object with a simple Label object. The Label updates every second or

WebPushError and UnauthorizedRegistration when try to send push notification to Chrome and Opera, Firefox is OK

前提是你 提交于 2019-11-26 21:58:58
问题 I managed to run a working example for sending web-push notifications - subscribe user for push notifications, get the endpoint, generate the two browser keys from the subscription object - p256dh and auth . On the server side I generate the VAPID keys. So, with all these I call sendNotification on the web-push Node.js package, and also - I'm passing a payload. On Firefox - I get the notification with the payload. On Chrome and Opera I get WebPushError: Received unexpected response code and

GCM Equivalent for Firefox

百般思念 提交于 2019-11-26 21:53:29
问题 Google Cloud Messaging (GCM) is a service that enables developers to send data from servers to both Android applications or Chrome apps and extensions. I am developing a chrome and a firefox extension/add-on. I am using the Web Extension APIs for Firefox extension. Now, Web Extension APIs don't support chrome.gcm.* APIs yet. Essentially, a firefox extension cannot talk to GCM. Is there something else like GCM to which a firefox extension can talk to? Something provided by the Firefox just

How to send push notification to web browser?

天涯浪子 提交于 2019-11-26 18:04:37
I have been reading for past few hours about Push Notification API and Web Notification API . I also discovered that Google & Apple gives push notification service for free via GCM and APNS respectively. I am trying to understand if we can implement push notification to browsers using Desktop Notification, which I believe is what Web Notification API does. I saw a google documentation on how this can be done for Chrome here & here . Now what am still not able to understand is: Can we use GCM/APNS to send push notification to all Web Browsers including Firefox & Safari? If not via GCM can we

Displaying Same Data Aross Multiple Clients Using Push in Vaadin 7 app

被刻印的时光 ゝ 提交于 2019-11-26 17:46:38
问题 I want to share the same set of data to multiple clients. I need to use Push to automatically update their view on screen. I have read the Question and Answer, Minimal example of Push in Vaadin 7 app (“@Push”). Now I need a more robust realistic example. For one thing, I know having a never-ending Thread is not a good idea in a Servlet environment. And I don't want each user having their own Thread, each hitting the database on their own. Seems more logical to have one thread alone checking

Minimal example of Push in Vaadin 7 app (“@Push”)

风格不统一 提交于 2019-11-26 11:14:22
问题 I want to see the most minimal example of using the new Push technology in Vaadin 7, such as the new @Push annotation. I am having problems getting server-push to work in my app. I would like to try a simple example app before trying to fix my own app. 回答1: Simplification Of Example In The Book Of Vaadin The Book Of Vaadin includes a chapter on Push, including an example using Vaadin Charts. Below is my code. While based on that Vaadin Charts example mentioned above, I simplified it by

How to send push notification to web browser?

痴心易碎 提交于 2019-11-26 08:53:59
问题 I have been reading for past few hours about Push Notification API and Web Notification API. I also discovered that Google & Apple gives push notification service for free via GCM and APNS respectively. I am trying to understand if we can implement push notification to browsers using Desktop Notification, which I believe is what Web Notification API does. I saw a google documentation on how this can be done for Chrome here & here. Now what am still not able to understand is: Can we use GCM