Reputation: 1
I'm trying to use the C2DM framework.
I can receive push messages on my real device (so it seems that my application code is fine) but with the same application I don't receive any messages on the emulator (I tried with the Google API 8, Google API 10 and Google API 15).
Retrieving a registration id for the device is fine.
I just don't receive any messages
Do you know what could be wrong?
Thank you for your help and regards,
Upvotes: 0
Views: 873
Reputation: 7881
of course it will not work emulator . coz C2DM is configure with Gmail account for mapping a unique device .
C2DM get API generate the device id vai gmail account and that id is unique and emulator dont have gmail API to configure account
Upvotes: 2
Reputation: 68167
Since emulators (by default) dont have Google Account service (Gmail/Market) available, thats why you cant test on them - unless you configure your google account. Otherwise, it should be tested on real devices
Upvotes: 2
Reputation: 2798
-You must have android sdk 2.2+ and google service must be running on your emulator (We would recommend to install google sdk 2.3.1)
-You must register your Google account on your emulator. You can do it by going to Settings -> Accounts & Sync and add gmail account. You cannot receive push notification unless Google account is set.
-You must register your developer’s email address for your application at google . Please note one thing that this account is developer’s account and might not be account which is configured in ‘Accounts & Sync’ settings.
Upvotes: 1