推送通知不会发送到某些设备 [英] Push notifications aren't send to some devices

查看:36
本文介绍了推送通知不会发送到某些设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的推送通知服务有一个非常奇怪的行为.我正在 20 台设备上测试一个新应用,但我有 3 台设备没有收到任何推送通知.

I'm having a very strange behavior in my push notification service. I'm testing a new application in 20 devices but I have 3 devices that doesn't receive any push notification.

我在这里有自己的服务器来管理推送订阅,并且在此服务中我拥有这些设备的令牌.但奇怪的是,我使用相同的服务向我构建的其他应用程序发送推送通知,并且运行良好.

I have my own server here a manage the push subscription, and in this service I have the tokens of these devices. But the strange thing, is that I use the same service to send push notification to other applications that I built, and it works perfectly fine.

而且我还可以向您保证,这些设备已为此应用启用推送通知设置.

And I also can assure you that these devices have the push notification settings enable to this application.

我不知道问题是什么.

我已经为这些应用程序生成了一个新的推送证书,我在我的服务器中进行了调试以确保推送通知成功发送到苹果.但如果同一个应用程序在其他设备上收到推送通知,为什么它不适用于这些特定设备.

I already generate a new push certificate for these application, I place debug in my server to ensure that the push notification is successfully sent to apple. But if the same application receives push notifications in other devices, why it doesn't work with these specific devices.

欢迎提出任何想法.谢谢.

Every ideas are welcome. Thank you.

推荐答案

由于您对这三种设备很具体,这听起来有点奇怪,而 Bogdan Andresyuk 重置这些设备的想法很有意义.

As you're specific about the three devices, it sounds a little odd and Bogdan Andresyuk idea of reseting those devices would make sense.

我过去曾遇到过一些推送通知未送达的问题.请问您是否按顺序发送通知,即这三台设备是您尝试发送通知的最后三台设备吗?或者是否有您可以构建的序列或某种模式.假设您有 10 台设备,其中 3 台设备未收到通知,通知按顺序发送,而设备 3、6 和 9 未收到消息.

I've had issues in the past whereby some push notifications are not delivered. Can I ask are you sending notifications outin order i.e. are these three devices the last three devices that you try and send notifications too? or is there a sequence or some sort of pattern that you can build. Say you have 10 devices and three don't get the notification and the notifications are sent in order and it's device 3, 6 and 9 that don't get the messages.

如果有这样的事情,那么很可能是您的推送通知被 Apple 拒绝了.也许是因为您要快速连续多次打开和关闭 APNS 的套接字.Apple 不喜欢这样,并且更喜欢您将套接字保持打开状态,为什么要发送通知.

If there is something like this then it could well be your push notifications are being rejected by Apple. Perhaps because you're opening and closing a socket to the APNS to many times in quick succession. Apple doesn't like this and prefers you hold the socket open why you send your notifications.

如果没有,那么也许您可以提供有关设备和事件顺序以及如何设置推送服务的更多详细信息.我用城市飞艇为你打理插座等,免费送100万.

If not then perhaps you could provide a little more detail about the devices and the sequence of events and how you're set up your push service. I use urban airship as the take care of the sockets etc for you and you can send 1 million for free.

这篇关于推送通知不会发送到某些设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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