I implemented GCM to my app as described Getting Started page and used gcm.jar and gcm-server.jar helper libraries for easier implementation.
But I think I misunderstood something with GCM; beucase I couldn't achieve what i want.
I want that register devices with another key information not only registerId. For example this is a weather application and user may want to get notifications about one city or more cities. To achieve this, server needs the city name or postal code to fetch weather information from other sources and push back to the registered devices if there is any change at releated cities.
I register device when user stated to get notifications about something particular (for example city).
However GCMRegistrar.register
method only takes 2 arguments, one for context and one for senderID.
How can I send additional parameters to application server?
edit: I implemented GCMIntentService and onRegistered method. I can send additional information from here with directly calling server; but i lose additional information when onRegistered method called.