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

Était-ce utile?

La solution

You can set CamelApnsTokens and CamelApnsMessageType just like this

from("direct:test")
   .setHeader("CamelApnsTokens",constant("TOKEN"))
   .setHeader("CamelApnsMessageType",constant("STRING"))
   .to("apns:notify");
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top