Pushwoosh 报告未经授权

Pushwoosh reports Unauthorized

我在 google Play 商店上有一个 android 应用程序,当我尝试在其上发送推送通知时,所有已发送的推送都报告为 "Unauthorized" ,这是在我可以成功向我的测试设备发送推送通知时发生的。 可能是什么问题?

我正在使用 GCM Api key(我认为它可以正常运行,因为我可以成功发送测试推送),这些是我的项目依赖项:

compile 'com.pushwoosh:pushwoosh:4.10.8'
compile "com.google.android.gms:play-services-gcm:10.2.4"

community.pushwoosh.com中post的用户遇到了同样的问题。这是解决方案。

Please note that the "Unauthorized" error in the Control Panel means that Pushwoosh cannot authorize at GCM while sending push notifications. Most probably, something is wrong with the API key.

Please check GCM API key that you entered in your Android settings in the Control Panel. You should try both Browser key and Server key.

对于那些遇到这个问题的人,我最终从 google 开发人员控制台生成了一个新的 GCM Api key 并在 pushwoosh 面板中用旧的替换它,它解决了我的问题,我的推送通知是从那时起成功发送。由于很久以前就有人问过这个问题,目前如果您遇到同样的问题,请创建新的 FCM Api key 并替换它。