使用生产证书时 APNS-php 无法发送给超过 1 个收件人
我们利用 php-apns 向 iPhone 应用程序用户发送推送通知。这在我们开发时效果很好,但是一旦应用程序进入应用程序商店并且我切换到生产证书,我就只能发送给单个收件人。除此之外,没有人会收到推送通知。
我在其他地方读到其他人也遇到过这个问题。我知道的唯一“解决方案”是 open &为每个推送通知关闭与 APNS 的新连接,但我不会这样做。这不是一个好的解决方案。
有人有什么想法吗?
We utilize php-apns to send push notifications to our iPhone app users. This worked great when we were developing, however once the app was in the app store and I switched to the production certificate, I'm only able to send to a single recipient. Any more than that and no one gets a push notification.
I've read elsewhere that others have experienced this problem. The only "solution" I'm aware of is to open & close a fresh connection to APNS for every push notification, but I'm not doing that. That's not a good solution.
Anyone have any thoughts?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我找到了答案!
这似乎是发送到开发设备令牌的问题。与大多数人一样,我们有一个存储设备令牌的数据库,并且早期的记录是用我们测试时的设备令牌填充的。
一旦我从列表中删除这些设备令牌,一切就正常了!
我真的希望有人觉得这很有用!
I found the answer!
It appears to be an issue with sending to the development device tokens. Like most people, we have a database that stores the device tokens, and the earlier records were populated with our device tokens from testing.
As soon as I net out those device tokens from my list, all works!
I really hope someone finds this useful!