Can someone please provide me with an example on how to use Message headers,CamelApnsTokens and CamelApnsMessageType of camel apns component. I am new to camel and i went through the apns component webpage on camel website but was not able to make much out of it as it provides the route definitions only. Thanks

有帮助吗?

解决方案

You can set CamelApnsTokens and CamelApnsMessageType just like this

from("direct:test")
   .setHeader("CamelApnsTokens",constant("TOKEN"))
   .setHeader("CamelApnsMessageType",constant("STRING"))
   .to("apns:notify");
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top