notifications - PushSharp - GCM 授权失败

标签 notifications push firebase-cloud-messaging pushsharp

使用 Pushsharp(nuget 包)的 v4.0.10,出现错误 GCM Authorization Failed向 Android 设备发送推送通知时。

似乎问题 574 ( https://github.com/Redth/PushSharp/issues/574 ) 中提出的错误已编译到 nuget 包中,但我仍然收到此错误。

这可能与 Firebase Cloud Messaging 的引入有关吗?

有没有人仍然使用 GCM 成功?

最佳答案

截至目前,GCM 仍然可用。但是,强烈建议新用户改用 FCM。无论哪种方式,对于 GCM 和 FCM,您都必须使用从 Firebase 控制台生成的服务器 key 。 GCM docs 中有一个可见的注释说:

Starting from Sept. 2016 new server key can only be created in the Firebase Console using the Cloud Messaging tab of the Settings panel. Existing projects that need to create a new server key can be imported in the Firebase console without affecting their existing configuration.



许多用户都遇到了授权错误,有些用户还有一个旧项目。看我的回答 here更多细节。

关于notifications - PushSharp - GCM 授权失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40603297/

相关文章:

github - 是否可以将更改推送到 Team City 中的 VCS 根?

arrays - 在 Perl 中多次执行语句的简单方法

javascript - 使用 firebase 消息传递时为不同的用户接收相同的 token

firebase - 如何在flutter firebase应用程序中搜索并向附近的人发送通知?

android - 我的应用程序在 android 模拟器中运行良好,但在我的真实设备中无法运行

notifications - 使用 Azure 服务总线通知中心取消注册标签

javascript - 为什么当 push() 在 for 循环中运行时浏览器崩溃,如下所示

flutter - 如何为flutter应用程序添加android通知 channel ID以在应用程序处于后台时修复通知

swift - 延迟 1 秒后或在调度异步中如何发布通知?

Android:状态栏中的组通知但不在通知列表中