Question

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

Was it helpful?

Solution

You can set CamelApnsTokens and CamelApnsMessageType just like this

from("direct:test")
   .setHeader("CamelApnsTokens",constant("TOKEN"))
   .setHeader("CamelApnsMessageType",constant("STRING"))
   .to("apns:notify");
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top