苹果推送通知 [英] Apple Push Notification

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

问题描述

我的苹果通知收到某个时候得到一些未能达成设备。
请帮助我,告诉不同的场景时,苹果通知失败。

My Apple Notification sometime received some get failed to reach on device. Please help me and tell different scenarios when an Apple Notification fails.

任何帮助将是非常美联社preciated。

Any help would be very appreciated.

推荐答案

有可能是推送通知不灵各种原因。该检查列表可以帮助你找到几个:
APNS核对清单

There could be various reasons for push notification not working. This check list can help you find few : APNS CheckList


  • 提供商应该安装委托安全服务器CA根证书。这使得TLS / SSL验证完整的APN服务器证书链。这根证书可以从委托的网站下载。

从开发环境中的设备令牌不会对生产推送服务工作。每个pushenvironment会发出相同的设备不同的令牌。如果无效的设备的令牌发送到错误的环境中,推送服务将看到作为无效标记和丢弃通知

The device token from development environment will not work on production push service. Each pushenvironment will issue a different token for the same device. If an invalid device token is sent to the wrong environment, the push service will see that as an invalid token and discard the notification.

如果您在设备上删除您的应用程序,然后发送推送通知它,你会希望有设备令牌拒绝,无效设备标记应该出现在反馈服务。但是,如果这是在设备上的最后一个启用推应用程序,它不会在反馈服务显示。这是因为删除最后一个应用程序眼泪就下来了的推送服务的持续连接可以发送删除通知之前。

If you remove your app from your device and then send a push notification to it, you would expect to have the device token rejected, and the invalidated device token should appear on the feedback service. However, if this was the last push-enabled app on the device, it will not show up in the feedback service. This is because deleting the last app tears down the persistent connection to the push service before the notice of the deletion can be sent.

推提供商通常是防火墙之后。要发送通知,您将需要TCP端口2195打开。为了达到反馈服务,你需要有TCP端口2196打开。连接到Wi-Fi上的推送服务的设备将需要TCP端口5223打开。

Push providers are often behind firewalls. To send notifications, you will need to have TCP port 2195 open. To reach the feedback service, you will need to have TCP port 2196 open. Devices connecting to the push service over Wi-Fi will need to have TCP port 5223 open.

对于推送服务的IP地址范围如有更改;期望的是,供应商将通过主机名而不是IP地址连接。然而,整个17.0.0.0/8地址块分配给苹果,以便您可以指定你的防火墙规则的范围。

The IP address range for the push service is subject to change; the expectation is that providers will connect by hostname rather than IP address. However, the entire 17.0.0.0/8 address block is assigned to Apple, so you can specify that range in your firewall rules.

我们可以启用日志记录APNS由要么把一个Web服务器上的文件和下载它在设备上使用Safari的位置,或通过发送它作为电子邮件附件开放上安装的设备的配置文件APNsLogging.mobileconfig附件在邮件您的设备上。我们可以使用MDM推的个人资料。

We can enable APNS logging, install the configuration profile APNsLogging.mobileconfig on device by either putting the file on a web server and downloading it location using Safari on your device, or by sending it as an email attachment and opening the attachment in Mail on your device. We can use mdm to push profile.

更多细节可以发现这里

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

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