tags:

views:

48

answers:

1

Anyone know where I can find an example of how I can get a ClientLogin token for use in Cloud to Device messaging? I get the general idea, but I'm not exactly sure what parameters I'm supposed to be sending, and how.

+1  A: 

Here is a curl command that generates a ClientLogin. It is pretty much standard Google auth, using the ac2dm service.

CommonsWare
So, you don't have to pass the package name for the app or anything?
synic
@synic: For the login, you pass `ac2dm`. For the actual push, it is driven by the registration ID. The package name of the app is already on the C2DM servers courtesy of the registration process, I presume.
CommonsWare
Once again, you are the best. Thanks! Though, now that I see that on your wiki, I realize this is already in your book and I could have just read about it. I guess I underestimate how well you keep on top of these things.
synic
@synic: Well, I don't cover everything, but C2DM is one I happened to jump on.
CommonsWare