Is MDM push also not support legacy binary protocol as of November 2020?

Hi, I want to ask is MDM push also not support legacy binary protocol as of November 2020?

If not support, may I ask what the http2 header need to append for mdm push?

Here is my header:
{"apns-topic": 'com.apple.mgmt.External.xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx',"apns-push-type": 'mdm'}

The post url is: api.push.apple.com:443/3/device/@deviceToken

The mdm payload :
{
'mdm':'@pushMagic'
}

And I always receive the BadDeviceToken, is something I mistake?

Thanks.

Replies

Are there any updates?
  • what's confusing is that the device token is binary when we receive it in a tokenUpdate but the http2 protocl seems to want it in hexadecimal so unclear if this is the correct token to use

Add a Comment
First, an update on the legacy protocol. The turn off date has been pushed to March 31, 2021.
You can read the news article here: https://developer.apple.com/news/?id=c88acm2b

As for the BadDeviceToken error, the message is pretty clear. The token is not a valid token, or it is not a valid token for the environment you are using. You could be getting this error if the token is simply invalid, or using a sandbox token for production or vice versa. Or you are using a wrong kind of token altogether.

thanks, Gualtier Malde.

https://developer.apple.com/news/?id=c88acm2b
To give you additional time to prepare, the deadline to upgrade to the APNs provider API has been extended to March 31, 2021.
APNs will no longer support the legacy binary protocol after this date.

APNs will no longer support the legacy binary protocol, but will it continue to work?
Hi Gualtier Malde,

First, an update on the legacy protocol. The turn off date has been pushed to March 31, 2021.
You can read the news article here: https://developer.apple.com/news/?id=c88acm2b

Is that means MDM push using binary protocol(Java socket) will be not supported neither?