Push notification badge count not increasing.It shows always 1.I have used php to send the push from server and here is the code following:

```
    $apnsHost = 'gateway.sandbox.push.apple.com';
    $apnsCert = 'project_dev.pem';

    $apnsPort = 2195;
    $badgecount=1;

    $streamContext = stream_context_create();

    stream_context_set_option($streamContext, 'ssl', 'local_cert', $apnsCert);

$apns = stream_socket_client('ssl://' . $apnsHost . ':' . $apnsPort, $error, $errorString, 2, STREAM_CLIENT_CONNECT, $streamContext);
if (!$apns){
    exit("Failed to connect: $error $errorString" . PHP_EOL);
}else{
    $messageHeader = (strlen($message) > 26) ? substr($message,0,26).'...' : $message;

$msgd=explode(':',$message);

$payload['aps'] = array('alert' => $messageHeader,'badge' => $badgecount, 'sound' => 'default','mess'=>$fromUserId.'||'.$userNamee.'||'.$userimage.'||'.$message,'type'=>'reply', 'unread_count'=>$unread_count);

$output = json_encode($payload);
$token = pack('H*', str_replace(' ', '', $token));

$apnsMessage = chr(0) . chr(0) . chr(32) . $token . chr(0) . chr(strlen($output)) .     $output;

fwrite($apns, $apnsMessage);

fclose($apns);
}

```