【问题标题】:Can't receive Firebase Notifications on emulator behind proxy无法在代理后面的模拟器上接收 Firebase 通知
【发布时间】:2018-02-23 19:57:02
【问题描述】:

我无法在代理后面的模拟器上接收 firebase 通知

但是,如果我在 android 设备上安装 apk,然后发送通知,它就会收到。

我正在使用 API 27 x86 图像模拟器。

应用程序是针对 API 27 和 Target 27 编译的。

有什么想法吗?

【问题讨论】:

  • 你说模拟器镜像是API 27,非模拟器设备API也是27吗?
  • 没有。非模拟器设备是 API 21。

标签: android firebase notifications android-emulator apk


【解决方案1】:

如果您使用 Firebase SDK 版本 11.8.0 构建应用,问题可能是由于模拟器映像没有兼容的 Google Play 服务版本。最新的 API 27 模拟器镜像不支持 11.8.0

在应用针对此警告初始化时查看 logcat:W/GooglePlayServicesUtil: Google Play services out of date。如果您看到了,最简单的选择是使用支持 11.8.0 的 API 26 仿真器映像运行。

FCM setup instructions in the documentation 解释说,使用 Firebase 构建的应用应检查 Google Play 服务的兼容版本。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-08-13
    • 1970-01-01
    • 1970-01-01
    • 2021-04-27
    • 1970-01-01
    • 2011-07-02
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多