title: push notifications received by a limt number of ios devices
body: <p>I have the push notifications service in my application, and I have 600 number of tokens in my database, unfortunately the push notifications are received by just 30 tokens.
  I got my iPad token and I put it in the first row in database, I got a push notification, I've tried to test if all tokens are received, so I put it (the same token) in the 35th record, I send push notification, my iPad didn't receive it.
  I am working with production push notifications (without sandbox) not development.</p>
  
  <pre><code>    $sql="Select apns_devices.pid, apns_devices.appname, apns_devices.appversion, apns_devices.devicetoken, apns_devices.devicemodel, apns_devices.deviceversion, apns_devices.pushbadge, apns_devices.pushalert, apns_devices.pushsound, apns_devices.development, apns_devices.`status`, apns_devices.created, apns_devices.modified, apns_devices.`type`
  From apns_devices
  Where apns_devices.`status` = 'active'  AND apns_devices.pushalert = 'enabled' AND apns_devices.development = 'production' ";
  $result=mysql_query($sql);
  
  
  $payload = '{"aps":{"alert":"'.$message.'","sound":"default","badge":"+1"}}';
  
  $i=0;    
   while ($deviceToken = mysql_fetch_array($result1)) { 
  // Build the binary notification
      $msg = chr(0) . pack('n', 32) . pack('H*', ''.$deviceToken[3].'') . pack('n', strlen($payload)) . $payload;
  
  // Send it to the server
  $result = fwrite($fp, $msg, strlen($msg));
  $i++;
          }
  
  echo $i;
  </code></pre>
  
  <p>the echo $i returns 600 which is the number of tokens in database, but not all devices receive the push notifications.</p>
  
  <p>Please help.</p>