使用 APNS 发送多个通知时遇到问题

发布于 2024-09-01 12:48:47 字数 341 浏览 2 评论 0原文

我正在尝试使用 PHP 脚本发送多个通知。但在向 10,000 个用户中发送了大约 50 个用户后,我收到了管道损坏的警告。我不确定该消息是否已发送。 从其他各种帖子中,我了解到这可能是因为令牌无效。但是,我的反馈服务没有返回无效令牌。 (ssl://feedback.push.apple.com:2196)在生产模式和沙盒模式下都尝试过此操作。

还有哪些其他原因可能导致此无效管道问题?

我的确切问题也由其他人解释过。

http://pastie.org/698787.txt

I'm trying to send multiple notifications using my PHP script. But after sending about 50 or so out of the 10k users, I get a broken pipe warning. I'm not sure whether that message is sent.
From various other posts, I learnt that it could be because of a invalid token. However, my feedback service returns no invalid tokens. (ssl://feedback.push.apple.com:2196) Tried this both in production mode and sandbox mode.

What other reasons could cause this invalid pipe issue?

My exact problem is explained here by someone else as well.

http://pastie.org/698787.txt

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

追星践月 2024-09-08 12:48:47

一旦您的推送消息流出现问题,Apple 的服务器就会断开连接。

在沙盒和生产模式之间混合设备令牌时要小心。有一篇文章这里 描述了该问题。

另外,您是否尝试过使用 Apple 的文档?响应可能会告诉您出了什么问题。

Apple's servers will drop the connection as soon as there is something wrong in the stream of your push messages.

Be careful with mixing device tokens between sandbox and production modes. There's an article here that describes the issue.

Also, have you tried using the enhanced notification format described in Apple's documentation? The response might tell you what's wrong.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文