Posts

Post not yet marked as solved
3 Replies
1.1k Views
We are trying to use HTTP/2 to send push notifications using C#. We are currently using Certificate based Authentication for Binary Protocol and while using the Certificate auth for HTTPS/2 we are getting the below exception. "Error 12152 calling WinHttpWriteData, 'The server returned an invalid or unrecognized response" While searching for this error we found the belwo article, that says "System.Net.Http.WinHttpHandler fallbacks to HTTP/1.1 when using client certificates with HTTP/2 #40794" https://github.com/dotnet/runtime/issues/40794 Then we tried with JWT token approach. While trying with JWT token we are getting the "DeviceTokenNotForTopic" error. Though we are using the proper device and topic details, we still get this error consistently. Could someone please help us to resolve this error. StatusCode: 400, ReasonPhrase: '', Version: 2.0, Content: System.Net.Http.NoWriteNoSeekStreamContent, Headers: {​​​​​​​ apns-id: 7DF65027-4252-E9FF-55A8-67ECB1BA73C4 }​​​​​​​ {​​​​​​​"reason":"DeviceTokenNotForTopic"}​​​​​​​ Note: Running from a Windows device: build -1909, .Net Framework 4.7.1
Posted
by jdavis.
Last updated
.