0

I'm using the grails apns plugin to send push notification to ios devices :

when i try to send the push i always get this error

javax.net.ssl.SSLHandshakeException: Received fatal alert: certificate_unknown

the code i use to send the push :

String payload = APNS.newPayload().alertBody(message).sound("default").build();

apnsService.push(token, payload)

any idea about the cause if this error ? i tried to regenerate the certificate (.p12 file ) but still having the same error

4

1 回答 1

0

这是一个证书问题,在生成另一个 .p12 文件后它终于工作了:)

于 2013-11-01T08:16:12.887 回答