blazor-workshop icon indicating copy to clipboard operation
blazor-workshop copied to clipboard

Push notification doesn't work for me

Open erossini opened this issue 3 years ago • 5 comments

I tried to run the application in the browser and installed it as an app but I can't received the push notifications.

Apparently, the app is sending the notification via WebPushClient.

image

In the client point of view, there is nothing related to the push notification.

image

I allowed to show push notification in the browser.

erossini avatar Jun 04 '21 10:06 erossini

There seems to be an issue related to Blazor and push notifications. I cannot get them working in my own app, and I turned to this project to find the solution - but alas, they don't work here either!

I threw my own Vapid keys in and through debugging I can see the SendNotificationAsync function is getting a 401 response.

I am able to get push notifications working with another example project that is using AspNetCore, making me think this issue must be blazor-related.

SpikeViper avatar Jul 12 '21 16:07 SpikeViper

push notification not work for me too. Notification is not showing in Action center after installing as PWA.

emprosenterprises avatar Jan 05 '22 07:01 emprosenterprises

Do you guys get SSL exception?

Error sending push notification: The SSL connection could not be established, see inner exception.

I tried HttpClientHandler but it doesn't work.

ServerCertificateCustomValidationCallback = HttpClientHandler.DangerousAcceptAnyServerCertificateValidator

ChauThan avatar May 05 '22 08:05 ChauThan

It has been over a year. Some details on how to fix this would be nice!

SpikeViper avatar Jul 29 '22 17:07 SpikeViper

Once I deployed to Azure then push notifications work in the runtime. I get the 401 errors in dev.

rjean99 avatar Jan 22 '24 04:01 rjean99