Unable to push MDM commands via HTTP/2 using Certificate auth and JWT

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

The token-based APNS push method applies to sending push messages to apps. The system for sending push notifications for MDM does not support the token-based method.
Thanks for the quick reply.

Could you please help us in analysing the exception that we received via Cert based authentication. Since we are getting closer to HTTP/2 migration deadline, any details on this will help us to be compatible on time.

“Error 12152 calling WinHttpWriteData, 'The server returned an invalid or unrecognized response"
Also, we would like to know whether the deadline mentioned in the below notice is applicable for MDM Push Notification as well?
https://developer.apple.com/news/?id=c88acm2b

We got this question, since it is mentioned as we can take advantage of authentication with JSON Web Token, but as per you reply MDM Push doesn't support JSON Web Token. So we just wanted to confirm whether it is applicable for MDM as well.
Unable to push MDM commands via HTTP/2 using Certificate auth and JWT
 
 
Q