iOS Mass Push notification using PHP

  • Stato: Closed
  • Premio: $15
  • Proposte ricevute: 1
  • Vincitore: vaishali1191

Descrizione del concorso

We have a php code to send a message to ios Push Registration devices and push notification is working fine if it is sent one by one using this code
$deviceToken = "Actual Device Token";
$ctx = stream_context_create();
stream_context_set_option($ctx, 'ssl', 'local_cert', 'ck.pem');
stream_context_set_option($ctx, 'ssl', 'passphrase', $passphrase);

// Open a connection to the APNS server
//$fp = stream_socket_client('ssl://gateway.push.apple.com:2195', $err, $errstr, 60, STREAM_CLIENT_CONNECT|STREAM_CLIENT_PERSISTENT, $ctx);
$fp = stream_socket_client('ssl://gateway.push.apple.com:2195', $err, $errstr, 60, STREAM_CLIENT_CONNECT|STREAM_CLIENT_PERSISTENT, $ctx);

if (!$fp)
exit("Failed to connect: $err $errstr" . PHP_EOL);
echo 'Connected to APNS' . PHP_EOL;

$body['aps'] = array(
'alert' => array(
'title' => $ntitle,
'body' => $msg,
),
'url' => $nurl,
'sound' => 'default'
);

We need a code to send it in batches to 1000 like android allows.

Secondly we want to know which device tokens failed.

Competenze consigliate

Feedback del Datore di Lavoro

“very nice work”

Immagine del profilo safelistad, India.

Bacheca pubblica per chiarimenti

Nessun messaggio.

Come iniziare a usare i concorsi

  • Pubblica il tuo concorso

    Pubblica il tuo concorso Con facilità e in pochi istanti

  • Ottieni tante proposte

    Ottieni una Miriade di Proposte Da tutto il mondo

  • Seleziona la proposta migliore

    Seleziona la proposta migliore Scarica i file - Facile!

Pubblica subito un concorso o unisciti a noi oggi stesso!