Hey, I have a question about server side notifications, let me tell you what I wanna say.
I made a news site using Newsapi.org’s API, my site fetches the news in a specific time I set, but I want that users can allow notifications by clicking a button on my site.
When a user clicks the button then the browser (absolutely through site!) will ask for notifications permission, once allow then the browser will show a alert of Permition Grantend, and after that whenever new news will be fetched, the user will get a push-notification that Daily dose of news is ready with a picture, logo, body, title and every fancy thing, but the main twist is that I don’t want to be dependent on the Firebase, so can I anyone tell me solution of that?
MOST IMPORTANT THING THAT USER SHOULD GET THE NOTIFICATION EVEN IF HE HAS NOT OPENED MY SITE
WHAT I USED TO MAKE MY PROJECT –
- Node.js
- Express
- MongoDB
- Pure HTML CSS and JS (I don’t wnat to be get addicted of frameworks, becuase I believe that it makes you a noob)
KEY POINTS –
-
If user deny the permission then the popup will show Permission denied
-
After allowing of permission, if the user clicks the button again, he will get a alert of Already subscribed
-
If user clicks the button again after denying the permission, a alert will be shown as Please grant manually
I treid FIREBASE but it has limited options. SO I WANNA DEPENDENT ON MY SERVER SIDE THIS SYsTEM I ASKED FOR.
Siddhu Bhai is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.