问题描述
我使用的是谷歌的云推送通知,但出于某种原因,我不能接受在模拟器上推送通知。
I'm using push notifications on google cloud, however for some reason i cant receive push notifications on the emulator.
在同一个应用程序没有收到通知,但是当我测试它在真实设备上。
The same application does receive notifications when i test it on a real device however.
有没有其他人遇到这样或找到的解决办法呢?仿真设备具有网络连接,并且是相同的Android版本为真钞,所以我想不出任何理由不应该工作。
Has anyone else encountered this or found solutions to it? the emulated device has net access and is the same android version as the real one so i cant think of any reason it shouldn't work.
推荐答案
哪个目标有你的模拟器?对于谷歌服务,如GCM,使用谷歌的API(所有版本)目标接收推送通知
Which target have your emulator? For Google Services like GCM, use a "Google APIs" (any version) target to receive push notifications
这篇关于Android模拟器没有收到推送通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!