1

我已将 Pusher Kazoo 的应用程序配置为在转发 voip 呼叫之前唤醒 iOS 设备。我在这里遵循了官方文档。

要使用 APNS 发送推送,Pusher 使用这个库,如果我尝试将 Pusher 应该传递的参数传递给它,它会很好地工作。

无论如何,查看 Kazoo 日志,当 Pusher 尝试发送推送时,在与 apns 的连接过程中会抛出错误。

16:31:55.765 [error] |1aee60d7-7e93-4d70-8bbd-b1f647915d45|pm_apple:190(<0.5496.33>) error loading apns exit / {noproc,{gen_server,call,[apns_sup,{start_child,[#{apple_host => "api.push.apple.com",apple_port => 443,certdata => <<48,130,6,68,48,130,5,44,160,3,2,1,2,2,8,51,37,182,13,201,39,91,46,48,13,6,9,42,134,72,134,247,13,1,1,11,5,0,48,129,150,49,11,48,9,6,3,85,4,6,19,2,85,83,49,19,48,17,6,3,85,4,10,12,10,65,112,112,108,101,32,73,110,99,46,49,44,48,42,6,3,85,4,11,12,35,65,112,112,108,101,32,87,111,114,108,100,119,105,100,101,32,68,101,118,101,108,111,112,101,114,32,82,101,108,97,116,105,111,110,115,49,68,48,66,6,3,85,4,3,12,59,65,112,112,108,101,32,87,111,114,108,100,119,105,100,101,32,68,101,118,101,108,111,112,101,114,32,82,101,108,97,116,105,111,110,115,32,67,101,114,116,105,102,105,...>>,...},...]},...]}}
16:31:55.765 [error] |1aee60d7-7e93-4d70-8bbd-b1f647915d45|kz_util:97(<0.5496.33>) stacktrace:
16:31:55.766 [error] |1aee60d7-7e93-4d70-8bbd-b1f647915d45|kz_util:104(<0.5496.33>) st: lager_trunc_io:alist/3 at (448)
16:31:55.766 [error] |1aee60d7-7e93-4d70-8bbd-b1f647915d45|kz_util:104(<0.5496.33>) st: lager_trunc_io:alist/3 at (418)
16:31:55.766 [error] |1aee60d7-7e93-4d70-8bbd-b1f647915d45|kz_util:104(<0.5496.33>) st: lager_trunc_io:print/3 at (168)
16:31:55.766 [error] |1aee60d7-7e93-4d70-8bbd-b1f647915d45|kz_util:104(<0.5496.33>) st: lager_trunc_io:map_bodyc/3 at (359)
16:31:55.766 [error] |1aee60d7-7e93-4d70-8bbd-b1f647915d45|kz_util:104(<0.5496.33>) st: lager_trunc_io:map_bodyc/3 at (361)
16:31:55.766 [error] |1aee60d7-7e93-4d70-8bbd-b1f647915d45|kz_util:104(<0.5496.33>) st: lager_trunc_io:map_body/3 at (348)
16:31:55.766 [error] |1aee60d7-7e93-4d70-8bbd-b1f647915d45|kz_util:104(<0.5496.33>) st: lager_trunc_io:print/3 at (285)
16:31:55.766 [error] |1aee60d7-7e93-4d70-8bbd-b1f647915d45|kz_util:104(<0.5496.33>) st: lager_trunc_io:list_body/4 at (311)

手动发送推送,它可以工作,所以证书应该是正确的。

有什么建议吗?我对适用于 Android 的 FCM 做了同样的事情,而且效果很好。

4

0 回答 0