web-push-libs / web-push-csharp

Web Push library for C#
Mozilla Public License 2.0
429 stars 108 forks source link

error to Edge when lunch SendNotification #76

Closed ivantrouvetout closed 3 years ago

ivantrouvetout commented 3 years ago

I'm having trouble sending notifications to the Edge browser. I have this error -> Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.

have you he same error to send to Edge ?

during my research I found the following link

https://stackoverflow.com/questions/5420656/unable-to-read-data-from-the-transport-connection-an-existing-connection-was-f

I remain available if necessary

ivantrouvetout commented 3 years ago

ok, just add this befor work for me System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11;