Вопрос

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