Hack Forums
[C#] ASP.Net Core - push notifications - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [C#] ASP.Net Core - push notifications (/showthread.php?tid=5853796)



ASP.Net Core - push notifications - Tommy Chong- - Jun 24, 2018

I want users to get push notifications even when they're not visiting the website. like these:

[Image: 9a62c88b00.png]

How will I achieve this with ASP.Net core? I've seen plenty of vids and tuts using SignalR, but it seems like that's only within the website itself. I want users to accept that they want these notifications and whenever there comes a new row in a table in the database they get the corrosponding notification. E.g. " You've received a message {message preview}"

Anyone who can point me in the right direction? I'm looking everywhere but the right places it seems.

Thanks in advance


RE: ASP.Net Core - push notifications - itcorp - Jun 25, 2018

(Jun 24, 2018 11:50 PM)Tommy Chong- Wrote:  I want users to get push notifications even when they're not visiting the website. like these:

[Image: 9a62c88b00.png]

How will I achieve this with ASP.Net core? I've seen plenty of vids and tuts using SignalR, but it seems like that's only within the website itself. I want users to accept that they want these notifications and whenever there comes a new row in a table in the database they get the corrosponding notification. E.g. " You've received a message {message preview}"

Anyone who can point me in the right direction? I'm looking everywhere but the right places it seems.

Thanks in advance

In order for the user to see the push notification even when they're not visiting the website you can use SignalR,but only you need to make a separate application for that which will be installed in user pc and communicate with your site....And you can send notifications from your site...Here is one example that you can use as idea for your project source code i hope it will help you overcome the problem


RE: ASP.Net Core - push notifications - Nick (Name) - Jun 25, 2018

(Jun 25, 2018 12:38 AM)itcorp Wrote:  In order for the user to see the push notification even when they're not visiting the website you can use SignalR,but only you need to make a separate application for that which will be installed in user pc and communicate with your site....And you can send notifications from your site...Here is one example that you can use as idea for your project source code i hope it will help you overcome the problem

This seems like the solution to your problem, but it is rather intrusive for consumers. That’s why sites stick to email notifications. If this is an in-house project, than by all means set that up.


RE: ASP.Net Core - push notifications - Tommy Chong- - Jun 25, 2018

(Jun 25, 2018 12:38 AM)itcorp Wrote:  In order for the user to see the push notification even when they're not visiting the website you can use SignalR,but only you need to make a separate application for that which will be installed in user pc and communicate with your site....And you can send notifications from your site...Here is one example that you can use as idea for your project source code i hope it will help you overcome the problem

Thanks for your respond. I will check it out and see if i can use it.6

(Jun 25, 2018 01:31 AM)Nick (Name) Wrote:  This seems like the solution to your problem, but it is rather intrusive for consumers. That’s why sites stick to email notifications. If this is an in-house project, than by all means set that up.

It should be optional for any user to receive these. It's also for a specific purpose and users requested this functionality. I will see how far i get with the example itcorp shared.

Thanks for your replies



I'd also love to hear other's opinion on how to aproach this.