Find Jobs
Hire Freelancers

Help in fixing the GCM Notification service delay When sending to our App users

$10-30 USD

Annullato
Pubblicato circa 8 anni fa

$10-30 USD

Pagato al completamento
Hello, Please share your plan and ability to fix the issue in your desc. NO general desc. We're using GCM services to send our Android users, it was working fine, until we have 2000 users, we noticed that pressing NOTIFY from the server side it takes 1:20 sec to send! Our service is real time service we need to send the notification in max 10 sec after we click notify regardless the number of users. The code responsible to send the notification is: Android-----> // for android if($alertlist->device_type== "Android") { $notificationdata = array( 'registration_ids' => array($alertlist->gcm_regid), 'data' => array("message" => strip_tags($alertlist->video_des), "video_id"=>$alertlist->id, "device_token"=>$alertlist->device_id, "device_type"=>$alertlist->device_type, "userid"=>$alertlist->user_id, "isnotification"=>$alertlist->isnotification, "issound"=>$alertlist->issound, "gonotification"=>'NO'), ); $api_key = "AIzaSyB##rTFi_PlEhiJYYiT31Iz9dVXuYys"; $headers = array( 'Authorization: key='.$api_key,'Content-Type: application/json' ); $url = '[login to view URL]'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4 ); curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode(($notificationdata))); $result = curl_exec($ch); // print_r($result); curl_close($ch); }
Rif. progetto: 9704524

Info sul progetto

3 proposte
Progetto a distanza
Attivo 8 anni fa

Hai voglia di guadagnare un po'?

I vantaggi delle offerte su Freelancer

Imposta il tuo budget e le scadenze
Fatti pagare per il lavoro svolto
Delinea la tua proposta
La registrazione e le offerte sui lavori sono gratuite

Info sul cliente

Bandiera: PALESTINIAN TERRITORY
Ramallah, Palestinian Territory
5,0
79
Metodo di pagamento verificato
Membro dal ago 6, 2014

Verifica del cliente

Grazie! Ti abbiamo inviato tramite email il link per richiedere il tuo bonus gratuito.
Non è stato possibile inviarti l'email. Riprova per piacere.
di utenti registrati di lavori pubblicati
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Caricamento anteprima
Autorizzazione per la geolocalizzazione concessa.
La tua sessione è scaduta ed è stato effettuato il log out. Accedi nuovamente per piacere.