i\'ve done a apple-mdm-ota-server for IOS so far. The devices deliver me following things to the server (in form of a plist/xml):
-Push Magic Token -Device Token (in b64
use this libray
function push_device($data) {
$push = new ApnsPHP_Push(
ApnsPHP_Abstract::ENVIRONMENT_PRODUCTION,
'../MyPushCert.pem'
);
$push->connect();
$message = new ApnsPHP_Message_Custom($data["Token"]);
$message->setCustomProperty('mdm', $data["PushMagic"]);
$push->add($message);
$push->send();
$push->disconnect();
}