سؤال

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