Open erossini opened 3 years ago
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.
push notification not work for me too. Notification is not showing in Action center after installing as PWA.
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
It has been over a year. Some details on how to fix this would be nice!
Once I deployed to Azure then push notifications work in the runtime. I get the 401 errors in dev.
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
.In the client point of view, there is nothing related to the push notification.
I allowed to show push notification in the browser.