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.
views:
48answers:
1
+1
A:
Here is a curl command that generates a ClientLogin. It is pretty much standard Google auth, using the ac2dm service.
CommonsWare
2010-09-07 13:51:14
So, you don't have to pass the package name for the app or anything?
synic
2010-09-07 15:49:56
@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
2010-09-07 15:53:41
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
2010-09-07 16:03:34
@synic: Well, I don't cover everything, but C2DM is one I happened to jump on.
CommonsWare
2010-09-07 16:51:26