javascript - Build a chrome push notification extension that allows the user to choose different sections of a webpage to get notifications -


i working on chrome extension give desktop push notifications users ecommerce website has different product categories. users receive notifications when there updates in categories interested in i.e phones category, furniture, home appliance

example a: user interested in phones, therefore want them receive notifications phones category only

users should select category of choice popup.html after clicking extension icon. have extension ready in that, it's displaying desktop notifications 1 link(category). how can extension include other categories?

if user select category of choice popup.html, may send choice website using json data ajax, after server take user's categories of choice , save in database table responsible user's categories of choice.

so when there updates in products different categories @ ecommerce website , save relevant notifications in relevant table (let's call example: user's notification), because when chrome extension ( assuming try request data server time time configure) request new data web server return relevant data user's notification table, , that's how every user relevant data.

let me know if helped or not, try add other information or edit current answer, thanks


Comments