cordova - 无法连接到 Firebase
问题描述
我在我的科尔多瓦应用程序中使用 phonegap-plugin-push 来接收来自 firebase 的推送通知:
PushNotification.init({
android: {
iconColor: "#ffb800",
senderID: "725892xxxxxx"
},
ios: {
"sound": true,
"vibration": true,
"badge": true
},
windows: {}
});
当我启动应用程序时,我收到以下错误消息:
ERROR: Couldn't connect to firebase
在 PushNotification.init 语句中。有谁知道可能导致此错误的原因?
提前致谢!
解决方案
我能够通过将插件降级到 config.xml 中的 2.0.0 版本来解决这个问题。
推荐阅读
- python - 使用 python 订阅 ROS sensor_msg/Image
- sql - 在更新查询中使用多个左连接
- javascript - HTML 内容未在 Visual Composer WordPress 中呈现
- mysql - Spring Boot 中的外键(MySQL、Hibernate、JPA)
- android - RemoteServiceException:statForeground 的错误通知 - 应用程序中没有通知
- apache-beam - 是否可以获得给定键的前一个窗口的状态
- python - python中线程之间的数据通信
- c++ - C++ 对象向量
- c# - Fine Uploader 仅使用 asp.net MVC C# 上传 null
- monaco-editor - 如何在 Angular 6 中更改摩纳哥编辑器背景