The Android C2DM push app that I have developed has the reference of my sender is (example: "[email protected]") in the application side code. Case 1: When I install this app on a Android device, the device has a gmail id as "[email protected]" in Accounts and Sync settings. App is registered successfully with C2DM but it does not receive any of the pushed messages.
Case2: When I use the same sender id ("[email protected]") in the Android device's Accounts and Sync. I receive all the messages that I push.
Why case 1 is failing and case 2 (sender id all through) is successful?
Please make sure that you have signed out from built in gtalk application of your phone, if you are not signed out from gtalk app, then it will create ambiguity in between gtalk and ur personal app for messaged pushed from google server so it can not send message to any app and give exception.
For detailed information of push notification , please check https://developers.google.com/android/c2dm/
best c2dm tutorialis ,http://www.vogella.com/articles/AndroidCloudToDeviceMessaging/article.html