Android 模拟器未收到推送通知 [英] Android emulator not receiving push notifications

查看:56
本文介绍了Android 模拟器未收到推送通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在谷歌云上使用推送通知,但是由于某种原因我无法在模拟器上接收推送通知.

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 等 Google 服务,请使用Google API"(任何版本)目标来接收推送通知

Which target have your emulator? For Google Services like GCM, use a "Google APIs" (any version) target to receive push notifications

这篇关于Android 模拟器未收到推送通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆