Phil
Phil

Reputation: 583

Java Android GCM getting collapse_key

I just read that it is possible to group some messages to a collapse_key. Is it possible to get this collapse_key in the IntentService? I would need it for identification reasons.

Upvotes: 0

Views: 461

Answers (2)

user3593022
user3593022

Reputation: 127

Do it like this in your IntentService:

intent.getExtras().getString("collapse_key");

Upvotes: 1

Alécio Carvalho
Alécio Carvalho

Reputation: 13647

You mean with an Intent? Try this:

String collapseKey = intent.getStringExtra("collapse_key");

Upvotes: 1

Related Questions