Max number of devices to send to APNS socket sever
Our push notification script that has worked for almost a year has suddenly stopped working. The script does the following: Queries a DB for a list of iPhone device tokens Opens an SSL socket connection to Apple's live APNS server $ctx = stream_context_create(); stream_context_set_option($ctx, 'ssl', 'local_cert', $apnsCert); stream_context_set_option($ctx, 'ssl', 'passphrase', $pass); $fp = stream_socket_client($apnsHost, $err, $errstr, 60, STREAM_CLIENT_CONNECT, $ctx); creates a payload with a 255 byte sized message $payload = '{ "aps": { "alert": "' . $message . '", "badge": 1, "sound":