开发者

Does c2dm works on Android emulator?

开发者 https://www.devze.com 2023-04-13 05:29 出处:网络
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 r

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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号