ios - EC2 上的 APNS 不工作

标签 ios apple-push-notifications

我在我的开发环境中设置了 APNS,并且一切正常。在生产中,我可以看到设备正在注册,我在我的数据库中看到了 deviceToken,我看到消息正在发送......但用户没有收到它们。安全组有什么必须在这里完成的吗?我尝试阅读以下内容:

Apple push notification server on Amazon EC2 connected but not receive notification

http://developer.apple.com/library/mac/#documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/CommunicatingWIthAPS/CommunicatingWIthAPS.html

我尝试远程登录到 gateway.push.apple.com,我能够......还有什么我想念的吗??

编辑

我的服务器日志没有问题,经过大量调试后,问题似乎出在 APNS 上。有人可以告诉我我的设置是否正确吗?

我正在使用 prod apns 证书和 key 在类似 prod 的环境(但仍然不是 prod)中使用开发配置文件和 im 测试。这是不允许的吗?我不允许使用开发配置文件以这种方式自己测试它吗?

最佳答案

您的证书应该匹配。您不能使用生产 APNS 证书/ key 发送到开发配置文件,反之亦然。

来自 push notification provisioning 上的文档:

Each certificate is also limited to one of two development environments, each with its own assigned IP address.

You must get separate certificates for the sandbox (development) environment and the production environment.

关于ios - EC2 上的 APNS 不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14447412/

相关文章:

iOS Storyboard : Views outside of the ViewController and on Top of the Scene (between First Responder and Exit boxes)

html - 如何使用 swift 解释 IOS 应用程序中的 HTML

Java TLS 套接字 : No trusted certificate found

ios - 使用 SwiftUI 接收 APNS 后显示 View

iphone - 当我的应用程序未运行时,如何处理推送通知

android - 发送到设备后过期推送通知

objective-c - 在消息传递应用程序中使用 APN

ios - 在UITextView中以“语音气泡”样式显示消息的最佳方法-Swift

iphone - 使用 UIRoundRectButton 在 iPhone 模拟器中剪切文本 - 与我在 Storyboard 中看到的不同

ios - 我是否可以测试 Flash CS5 iOS 发布的 SWF 或 ipa,而不必每次都将它们加载到 iPhone 上?