如何在 mule 3.9.1 中发送苹果推送通知?

How to send apple push notification in mule 3.9.1?

我正在使用 apple 推送连接器。

我收到以下错误:

    INFO  2019-04-15 17:12:50,934 [Thread-11] com.notnoop.apns.internal.ApnsConnectionImpl: Exception while waiting for error code
java.io.IOException: Unexpected command byte 0
    at com.notnoop.apns.internal.ApnsConnectionImplMonitoringThread.run(ApnsConnectionImpl.java:118) ~[mule-module-apple-push-4.1.0.jar:?]
DEBUG 2019-04-15 17:12:50,955 [[api-gateway].standardHTTPS.worker.01] org.mule.module.http.internal.HttpMessageLogger: LISTENER
HTTP/1.1 200 
Content-Length: 0
Date: Mon, 15 Apr 2019 22:12:50 GMT

如何解决这个问题并使连接器正常工作?

谢谢

参考:https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/sending_notification_requests_to_apns

http://mulesoft.github.io/apple-push-connector/mule/apple-push.html

我改用 pushy 库,可以成功发送苹果推送通知。