GCM bulk notification Issue

51 views
Skip to first unread message

Ashwini Atale

unread,
Dec 21, 2015, 4:39:47 AM12/21/15
to android-gcm
We are sending Bulk notification Using pushsharp library.Issue raised when we start sending to google cloud 6000 aprox notification sent in 1 minute but after that we did not get any response from GCM  for about 30 minute  here we are waiting for response from gcm for success or failure to log.   After that we got response it started sending again.

Diego Giorgini

unread,
Dec 21, 2015, 4:45:57 AM12/21/15
to android-gcm
Hi Ashwini,

I am sorry but we cannot provide support for third party libraries.
If you are using the XMPP protocol please note that you can only have 100 messages in pending state:
(not yet acknowledged by GCM) see: https://developers.google.com/cloud-messaging/ccs#flow

Best Regards,
- Diego

On Mon, Dec 21, 2015 at 9:39 AM Ashwini Atale <ashwin...@indiainfoline.com> wrote:
We are sending Bulk notification Using pushsharp library.Issue raised when we start sending to google cloud 6000 aprox notification sent in 1 minute but after that we did not get any response from GCM  for about 30 minute  here we are waiting for response from gcm for success or failure to log.   After that we got response it started sending again.

Confidentiality & Disclaimer:
This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mails are not encrypted and cannot be a
ssured to be secured or error-free as information could be intercepted, corrupted, lost, destroyed arrive late or incomplete, or contain viruses. The sender, which includes India Infoline Limited and its group companies, will not be liable for any errors or ommissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments.

--
You received this message because you are subscribed to the Google Groups "android-gcm" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-gcm...@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-gcm/2ffd0b5e-e663-400e-98e1-a8e4d64c0a53%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ashwini Atale

unread,
Dec 22, 2015, 5:24:39 AM12/22/15
to android-gcm
Hi, 
I have changed that to HTTP.Now I am implementing Push notification using below method in response i am getting "id=0:1450779112975950%8e52962c66d6cf16"  and not getting notification on my android device     


private void AndroidPush()                                                                                                                      
 {                                                                                                                                                   
                                                          
            string regId = "myreg id";                                                                                              
                                                                                                   
            var applicationID = "myappid";                                                         
                             
      var SENDER_ID = "//my sender id";                                                                                            

                var value = "Hi test"; //message text box                                                                               
                Uri geocodeRequest = new Uri("https://android.googleapis.com/gcm/send");


                HttpWebRequest tRequest = (HttpWebRequest)HttpWebRequest.Create(geocodeRequest);
              
                                                
              tRequest.Method = "post";                                                                                                       

                tRequest.ContentType = " application/x-www-form-urlencoded;charset=UTF-8";                             

                tRequest.Headers.Add(string.Format("Authorization: key={0}", applicationID));                              

               tRequest.Headers.Add(string.Format("Sender: id={0}", SENDER_ID));                                         

         //Data post to server                                                                                                                                         
         string postData =     
              "collapse_key=score_update&time_to_live=108&delay_while_idle=1&data.message="         
               + value + "&data.time=" + System.DateTime.Now.ToString() + "&registration_id=" +      
                  regId + "";
         string Data = "";

         //Data = JsonConvert.SerializeObject(postData);

         Byte[] byteArray = Encoding.UTF8.GetBytes(postData);                                                

                tRequest.ContentLength = byteArray.Length;                                                                  

               Stream dataStream = tRequest.GetRequestStream();                                                    

               dataStream.Write(byteArray, 0, byteArray.Length);                                                          

               dataStream.Close();

               WebResponse tResponse = tRequest.GetResponse();                                                  

               dataStream = tResponse.GetResponseStream();                                                            

              StreamReader tReader = new StreamReader(dataStream);                                          

              String sResponseFromServer = tReader.ReadToEnd();   //Get response from GCM server.
              String S1;

               S1 = sResponseFromServer;      //Assigning GCM response to Label text 

                 tReader.Close();                                                                                                                    

                dataStream.Close();                                                                                                             
                tResponse.Close();                                                                                                              
               }      

Can you please help me in this?

Diego Giorgini

unread,
Dec 22, 2015, 5:50:30 AM12/22/15
to android-gcm
If you are receiving a message-id and no errors it means that the message has been accepted by GCM, and that it will be delivered as soon as the device comes online.

I suggest to check your client implementation.

Also, you can use Gcm Diagnostic tool in the Play Developer Console to debug specific messages, given their message-id.




Confidentiality & Disclaimer:
This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mails are not encrypted and cannot be a
ssured to be secured or error-free as information could be intercepted, corrupted, lost, destroyed arrive late or incomplete, or contain viruses. The sender, which includes India Infoline Limited and its group companies, will not be liable for any errors or ommissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments.

--
You received this message because you are subscribed to the Google Groups "android-gcm" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-gcm...@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages