I've configured the Pusher Kazoo's application to wake up an iOS device before forward a voip call. I followed the official documentation here.
To send a push with APNS, Pusher use this library that works pretty well if I try it passing the parameters that Pusher should to.
Anyway, looking at Kazoo log, when Pusher try to send the push, an error is thrown during the connection with 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)
Sending the push mannualy, it works, so the certificate should be right.
Any advice? I did the same with FCM for Android and works like a charm.