I am developing android push notification application using C2DM,I am facing some problems in my application.
The application is working when I am using same email address on both i-e server and client applications,
Can anyone tell me what will be the problem.
Altaf
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.