如何在Mule 3.9.1中发送Apple Push通知?

时间:2019-04-14 21:13:45

标签: http apple-push-notifications mule mule-studio

我正在使用苹果推连接器。

我收到以下错误:

    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.ApnsConnectionImpl$1MonitoringThread.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

1 个答案:

答案 0 :(得分:0)

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