| Start | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Web notification First, you will need to install Push.js (opens new window) module. Or import it to your front-end app through CDN (opens new window) After you are done with that, you should be good to go. This is how it should look like if u wanna make simple notification: I will assume that you know how to setup Socket.io (opens new window) with your app. Here is some code example of my backend app with express: After your server is all set up, you should be able to move on to front-end stuff. Now all we have to do is import Socket.io CDN (opens new window) and add this code to my index.html file: There you go, now you should be able to display your notification, this also works on any Android device, and if u wanna use Firebase (opens new window) cloud messaging, you can use it with this module, Here (opens new window) is link for that example written by Nick (creator of Push.js) |
||||||||||||
| Apple Keep in mind that this will not work on Apple devices (I didnt test them all), but if you want to make push notifications check OneSignal (opens new window) plugin. Parameters
|
Read Article
https://develop.horje.com/learn/1434/reference