【发布时间】:2015-05-26 18:14:08
【问题描述】:
我正在使用 rpush gem 向 iphone 发送推送消息。一位用户抱怨消息有时会发送,有时不会。我检查了rpush.log。在 rpush.log 中显示的 10 条消息中,有 3 条被手机发送和接收: [2015-05-25 22:25:45] [xxxx_production] 48121 发送到 083a15xxx [2015-05-25 22:27:57] [xxx_production] 48124 发送到 083a15xxx [2015-05-25 22:29:24] [xxx_production] 48125 发送到 083a15xxx
其他未传递的消息不会显示在 rpush.log 中。但它们在 rpush_notifications 表中显示为 Delivered=1 并且失败= 0。如:
| id | delivered | delivered_at | failed | failed_at |
| 48122 | 1 | 2015-05-25 22:26:47 | 0 | NULL
不知道如何进一步调试问题?什么可能导致 rpush 不传递消息但仍将 rpush_notifications 表更新为已传递=1?
【问题讨论】:
标签: ruby-on-rails apple-push-notifications