【发布时间】:2016-06-10 18:10:57
【问题描述】:
我已经设置了一个Azure Notification Hub,并且我已经完成了将Push Notification 合并到我的Android 应用程序中的所有步骤。该应用程序运行良好,正常接收推送通知。然后今天我去尝试发送推送,但失败了。所以我尝试了Azure Portal,但也失败了。
这似乎只与 Android 相关,因为在 iOS 中运行我的应用程序的设备正在收到 Push Notification ,就像它们应该的那样。我知道事实上我没有改变我的代码中的任何东西。但是,我现在在 Azure 门户中收到以下消息,而不是像我应该得到的 Push Notification。
The Push Notification System rejected the request because of an invalid credential
有人知道为什么会发生这种情况吗?我难住了。
起初我想这可能与我的 API 密钥有关(我也没有改变)所以我检查了。 Azure Portal 中的 Google Cloud Message API 密钥与我的 Google API Console 中的 API 密钥匹配,所以不是这样。
会是什么?
【问题讨论】:
-
嗨菲尔。您是否能够解决您的问题?我现在也有同样的经历。几天前也刚刚开始发生。
-
嗨。在 iOS 中遇到同样的问题。我该如何解决这个问题?
标签: azure push-notification google-cloud-messaging azure-notificationhub