droogie2799
Member
I was recently giving the task of writing a server side component that will send messages to a device. I have the device agent installed. I also have sample code from the device application developer that functions, there is a hard coded auth token and the registration id comes from the device. This auth token was produced by using a specific email account and password. I would like to use a different email account and a different auth token to send messages to the device.
So, I registered an account with google, received an email stating that the account is white listed. I then found c# code that given the email address and password will generate an auth token, I ran that code and received a new auth token. When I run the device agent and the device agent registers with c2dm it appears to have a new registration id which is what I use. but when I use the new auth token and the new registration id I get an invalid registration message in my code.
What am I doing wrong?
So, I registered an account with google, received an email stating that the account is white listed. I then found c# code that given the email address and password will generate an auth token, I ran that code and received a new auth token. When I run the device agent and the device agent registers with c2dm it appears to have a new registration id which is what I use. but when I use the new auth token and the new registration id I get an invalid registration message in my code.
What am I doing wrong?