Reputation: 9058
I read almost everything I could find about C2DM but what I couldn't understand is the auth token which the server needs in order to send a message. Do I need to pass the server the password of the user in order for him to get the token? Or am I missing something? I don't want to ask the user to enter their password (if it's needed than it's pretty easy to do a phising app). If I do need to send a token is there a way to get it with the accountmanager api?
Thanks.
After some consideration, is it possible I got confused and the auth token is really my gmail account(the developer)?
Upvotes: 0
Views: 449
Reputation: 45092
Take a look at JumpNote example project: http://code.google.com/p/jumpnote/ It has both the client and server side code you can rummage through.
As for the auth token, JumpNote project has helper shell script to get one: http://code.google.com/p/jumpnote/source/browse/trunk/scripts/get_auth_token.sh
This script will ask you for your Google Account credentials, and will retrieve an auth token that you can use for, I don't know, some time.
Upvotes: 0