I cannot find where in the chrome2phone project you actually do the
login. I see where you use the login for the C2DM send operation, but
it is only being loaded from a cache. It is not clear where the code
is that populates this cache.
Any suggestions on where I can find code that correctly logs me into the C2DM?
Thanks!
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy
Android Consulting: http://commonsware.com/consulting
OK, the curl stuff helped point out where I was making an error in
getting the authorization -- thanks!
> We want to avoid storing username/password in the server,
Please bear in mind that this would appear to run counter to the
documentation, which says:
"The server should store the token and have a policy to refresh it
periodically."
It is not possible to both "have a policy to refresh it periodically"
and "avoid storing username/password in the server".
Now I just need to figure out why I get Error=NotRegistered on a
registration_id I just generated...
Thanks again!
On Mon, Jul 5, 2010 at 1:45 PM, Costin Manolache <cos...@google.com> wrote:OK, the curl stuff helped point out where I was making an error in
> The token must be requested for 'ac2dm' service ( and not 'mail', 'cl',
> 'lh2', etc ), and the user ID you use should be the 'role account', as you
> specified in the form - the one we whitelisted.
> You can retrieve this with 'curl' or any other mean - it is then configured
> into the server.
getting the authorization -- thanks!
Please bear in mind that this would appear to run counter to the
> We want to avoid storing username/password in the server,
documentation, which says:
"The server should store the token and have a policy to refresh it
periodically."
It is not possible to both "have a policy to refresh it periodically"
and "avoid storing username/password in the server".
Ah! Automatically handling the token is far better than some manual process.
Thanks!
On Mon, Jul 5, 2010 at 2:41 PM, Costin Manolache <cos...@gmail.com> wrote:Ah! Automatically handling the token is far better than some manual process.
> There is also code in the appengine sample that looks for a
> UPDATE_CLIENT_AUTH
> header ( in C2DMMessaging for appengine ), the server may provide you with
> a fresh auth token - you should update your config with the new token.