Home Push notification in Web pages
Reply: 3

Push notification in Web pages

Jordy García
Jordy García Published in 2017-11-14 22:37:40Z

Can a web notification be implemented in web sites? I'm using a environment of jsp's with jquery, vue and angular.js for the front side. There's a way to implement web notifications with this environment?

rayfranco Reply to 2017-11-15 01:55:49Z

You can use the Notification API to achieve this.

If you want to use Service Workers to push notifications from a backend, you can check the Push API

These API are still drafts and may only work with modern browsers. Make sure you are using these API's over https.

Christopher.Wang Reply to 2017-11-15 02:07:18Z

you can use web socket, which has integrated in Angular already.

zakrzu Reply to 2017-11-15 11:12:38Z

use for example: https://github.com/mqttjs

then in your js:

    this.client = mqtt.connect(url, options);


    this.client.on("message", (topic:any, payload:any)=>{
        console.log('CONNECTED', payload);

    this.client.on("connect", function (connack: any) {
        console.log('CONNECTED', connack);

And use some server side message broker eg: rabbitMQ or other message router

read this https://www.rabbitmq.com/web-mqtt.html

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.301487 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO