I'm creating an Android application that uses Google Cloud Messaging. So 
far, I've successfully implemented the Upstream messaging, Application 
Server message handling and even the downstream messaging. However, I am 
encountering one last problem - Sending data upstream from a client device 
for broadcast. 

According to the Google documentation here 
<https://developers.google.com/cloud-messaging/notifications#sending-upstream-messages-to-device-groups>,
 
the following sends an upstream message to a device group:

GoogleCloudMessaging gcm = GoogleCloudMessaging.get(context);
> String to = aUniqueKey; // the notification key
> AtomicInteger msgId = new AtomicInteger();
> String id = Integer.toString(msgId.incrementAndGet());
> Bundle data = new Bundle();
> data.putString("hello", "world");
>
> gcm.send(to, id, data);
>
>
Now, I have the notification key, and I've also prepared the bundle. 
Somehow, I'm getting a weird error in LogCat while trying to send the 
message upstream:

> 03-15 18:50:00.750 19167-22471/meetup.be2015.gcm_meetup W/InstanceID/Rpc: 
> Found 10030


The link to my Class file as well as the LogCat is posted on StackOverflow 
and also as a public gist on Github.

You may find my question on StackOverflow here 
<http://stackoverflow.com/questions/36012811/broadcasts-not-working-in-google-cloud-messaging>,
 
and the code posted on GitHub here 
<https://gist.github.com/anonymous/39809e978aaa9862d968>.

Please do tell me what's going on - it's been frustrating me from two days. 
Thanks in advance

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/7b13b3a2-c766-41bb-9781-70476118e002%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to