发送通知时 Azure 通知中心注册消失 [英] Azure Notification Hub registrations disappear when sending a notification

查看:20
本文介绍了发送通知时 Azure 通知中心注册消失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我们的 Azure 通知中心变成了一个非常神秘的实体.当 Apple 设备注册时,我们可以在 Service Bus Explorer 中看到它们,一旦我们尝试发送任何通知(来自 SBE 或 Azure 门户),我们就会收到通知成功"消息,但设备上没有任何显示.刷新注册列表发现注册被删除.

Recently our Azure Notification Hub became a very mysterious entity. When Apple devices register we can see them in Service Bus Explorer and as soon as we try sending any notifications (from SBE or Azure Portal) we get a "Notification Successful" message, but nothing appears on the device. Refreshing registration list uncovers the fact that the registrations were deleted.

我们不会在代码中的任何地方删除它们,并且 TTL 还没有过期.

We are not removing them anywhere in code, and the TTL has not expired.

有什么建议吗?

推荐答案

结果表明前端人员退订的太急切了.删除取消订阅代码解决了问题.APNS 证书也存在问题,为了在调试中运行前端应用程序,它需要沙盒证书,而不是生产证书,以便正确传递消息.

Turns out the front end guys were unsubscribing too eagerly. Removing the unsubscribe code sorted out the issue. Also there was a problem with the APNS certificate, in order to run the front end app in debug it requires a sandbox certificate, not a production one, for the messages to be delivered properly.

这篇关于发送通知时 Azure 通知中心注册消失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆