我正在使用rpush gem向iphones发送推送消息。一个用户抱怨消息有时传递,有时不传递。我查过rpush.log了。在10条短信中,有3条通过手机收发,如rpush.log: 2015-05-25 22:25:45 48121发送至083a15xxx 2015-05-25 22:27:57 48124发送至083a15xxx 2015-05-25 22:29:24 48125发送至083a15xxx
其他未送达的邮件不会显示在rpush.log中。但它们在rpush_notifications表中显示为delivered=1和failed=0。例如:
| id | delivered | delivered_at | failed | failed_at |
| 48122 | 1 | 2015-05-25 22:26:47 | 0 | NULL 我不知道如何进一步调试这个问题?什么可能会导致rpush无法传递消息,但仍然将rpush_notifications表更新为delivered=1?
发布于 2015-05-27 02:22:20
检查rpush_notifications表中的retries列。看起来你在rpush.log中看到了暂时的问题(即下一次重试成功)。
https://stackoverflow.com/questions/30465918
复制相似问题