After migrating to Apple’s HTTP/2 notification we are getting Bad Device Token (400) error in our error logs


As per IOS recommendations, We have changed the APN process from legacy binary protocol to Apple’s HTTP/2 notification. We are using PHP to send push notifications. After the change management, We are seeing an increase in the failures. While validating the data We found that the Device token has the length 78 chars are returning success and Device token with <50 length are returning "Bad Device Token (400) error".

Please check and share to help us to identify the issue.

Replies

I am not going to try to read between the lines here.
Do you have a log of the exact path your request is being sent to?

Not what you are feeding to your PHP script, but what it is actually connecting to.