FAQ
I created a demo app which uses GCM. I am able to receive message when the
device is connected to network or when i manually stop the
application(Settings -> Apps -> Running). But when i force stop the
application (Setting -> Apps -> Downloaded) and send a message through GCM,
I am not getting the message( This is also an expected behavior). But when
i explicitly open the application, I should get the message when the app
was forcefully killed right?( GCM will queue the message until app comes
online.) This is not happening, but i am able to get any message sent after
that using GCM when the app comes online. This is how I populate the data:
         Map<String, Object> androidMessageMap = new HashMap<String,
Object>();
         //androidMessageMap.put("collapse_key", "Id:1");
         androidMessageMap.put("data", getData());
         //androidMessageMap.put("delay_while_idle", false);
         //androidMessageMap.put("time_to_live", 1250000);
         //androidMessageMap.put("dry_run", false);
         return jsonify(androidMessageMap);

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to android-gcm@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-gcm/69b9e101-17d1-4d31-826c-a01b6b642121%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupandroid-gcm @
categoriesandroid
postedMay 3, '14 at 4:24p
activeMay 3, '14 at 4:24p
posts1
users1
websitedeveloper.android.com...

1 user in discussion

Prabhu swaminathan: 1 post

People

Translate

site design / logo © 2019 Grokbase