Apple MDM push error, but only to some iOS devices

We have error with MDMpush on some iPhone devices:

Jul 30 17:52:46 Mirnas-iPhone apsd[49] : : Stream error occurred for : Error
Domain=NSPOSIXErrorDomain Code=54 “The operation couldn’-t -b-e
-c-o-m-p-l-e-t-e-d-. -C-o-n-n-e-c-t-i-o-n -r-e-s-e-t -b-y -p-e-e-r-” -U-s-e-r-I-n-f-o-=-0-x-1-4-3-5-4-0 -{-}

  • Update an expired iOS MDM profile
  • Documents for MDM Integration in iPhone
  • Updating iOS apps automatically with an MDM + Enterprise license
  • MDM Server certificate to be used for SSL handshake with iPhone device
  • Programmatically verify an MDM profile (configuration) has been successfully pushed to an iOS device?
  • Way to Programmatically Reboot iOS Device?
  • All devices are the same, same iOS version, but on 50% of devices we have this error. On other devices push is working perfectly. Devices with this problem checks in without problem during MDM payload installation, but when we try to push something, error happens.

    2 Solutions Collect From Internet About “Apple MDM push error, but only to some iOS devices”

    We had similar symptom long time ago, it was caused by someone changed the Apple MDM certificate after half of the devices enrolled. some device was enrolled with new cert, and rest are enrolled by old cert. the apple MDM server does not like this.

    You need to enroll all the device with same cert.

    I also faced this problem if you’re using same certification for different device. You have to do a clean, then build and run the application onto the device. Remove the previous installed application which is using same certification (same application).