I am trying to use Google c2dm for implementing an push notification for Android. I have a registered server, a registered Android emulator device. Every time i send a message from the server to the registered Android emulator, the application server gets the 401 response from Google's server. So i have the开发者_JS百科 question: does c2dm works on Android emulator? Thanks in advance.
Yes it works on android emulator. did you get the registration Id and authentication Id? check this for https://github.com/tomasmalmsten/c2dm-android-pilot
Yes it works in the emulator but you wont be getting the device id instead it will be filled up as 0000000..... for device id.This behavior would be same for all app only.See that you use google api.
Use google virtual device api and not ordinary apis
精彩评论