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

问题描述

限时删除!!

推送通知已经停止对我们的iOS应用的量产版的工作。它已经一年左右,因为我们发布了我们的应用程序,所以我猜它与证书即将过期的问题。首先,有没有什么办法来验证这其实就是问题?

Push notifications have stopped working for the production version of our iOS app. It's been about a year since we released our app, so I'm guessing it's an issue with the certificate expiring. First of all, is there any way to verify that this is in fact the problem?

我试图去苹果开发者网站,生成相应的应用程​​序ID新的生产APNS证书,下载证书,添加到钥匙扣,导出该证书的密钥,并添加代替我们的服务器上现有的密钥。这似乎并没有工作。关于是否该进程似乎什么了吗?有没有什么地方我可以找到详细的步骤来解决这个问题呢?

I tried to go to the Apple Developer site, generate a new production APNS certificate with the appropriate App ID, download the certificate, add to keychain, export the key for that certificate, and add replace the existing key on our server. This did not seem to work. Does anything about that process seem off? Is there somewhere I can find detailed steps for solving this problem?

编辑:我使用JavaPNS发送通知,并报告说,他们正在发送成功,但他们没有显示在设备上了。

I'm using JavaPNS to send the notifications, and it reports that they are being sent successfully, but they are not showing up on the devices.

编辑#2:我看到这个在文档的JavaPNS

EDIT #2: I see this in the docs for JavaPNS.

重要提示:如果您尝试推你不会得到任何错误
  通过APNS服务器通知,不符合您的
  证书(沙盒或生产),无论是服务器端或
  应用程序的一面,但您的通知将永远不会使它到您的
  移动应用程序。你必须非常小心证书
  提供给JavaPNS相匹配的内置目前到您的手机
  应用程序,它您选择到APNS服务器匹配
  使用(沙盒或生产)。任何不匹配这三个意志
  导致丢失的通知。

你必须非常小心,提供给JavaPNS的证书相匹配目前内置到您的移动应用之一,

"You must be very careful that the certificate provided to JavaPNS matches the one currently built into your mobile application,"

这是什么意思匹配?就在的AppID?

What does it mean by "matches"? Just the AppID?

推荐答案

苹果推送通知服务(APNS)证书,有效期为一年,必须每年更新。您可以创建一个新的证书或更新您的旧证书。

The Apple Push Notification Service (APNS) certificate, lasts for one year and must be renewed annually. You can create a new certificate or renew your older certificate.

这也许不是即时的,等一小会儿,看看它的工作。

It is maybe not immediate, wait a little to see if it worked.

这篇关于iOS版:推送通知已停止工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-06 15:34