I have developed push notification system in android using c2dm, It’s working fine but I having one problem i-e it works fine with one email only.
I have developed push notification system in android using c2dm, It’s working fine but
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It seems that you are under the wrong impression that the Role Email account which is created to identify the application using the C2DM service should be changed in the registration intent.
You must have that role email the same as the one on the server otherwise Google will not be able to identify your application as sender/receiver of this c2dm message.
Sample Registration Intent:
The Variable senderId here should hold the role account you created and signed up for C2DM on the google C2DM signup Page
This same email is used to obtain the Authentication token from google servers which is used to send C2DM messages later
Sample server code to get an authentication key:
notice the variable senderId this should also hold the role account you created and signed up for C2DM on the google C2DM signup Page
any other email can be changed to whatever you like, but these to emails have to remain identical
here is the definition from google C2DM page at google code:
I hope i helped have a nice day.
would have been nice if you included code snippets or more information about the emails you are talking about.