<div dir="ltr">Thanks,<div>I've updated the ticket, we will fix both</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 18, 2016 at 12:47 PM, gklein <span dir="ltr"><<a href="mailto:gunther.klein@f24.com" target="_blank">gunther.klein@f24.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Sebastian!<br>
<br>
Thanks for your answer.<br>
Please note also the other bug when sending -1 as ttl<br>
(<a href="https://github.com/aerogear/aerogear-unifiedpush-server/blob/master/push/sender/src/main/java/org/jboss/aerogear/unifiedpush/message/sender/APNsPushNotificationSender.java#L201" rel="noreferrer" target="_blank">https://github.com/aerogear/aerogear-unifiedpush-server/blob/master/push/sender/src/main/java/org/jboss/aerogear/unifiedpush/message/sender/APNsPushNotificationSender.java#L201</a>).<br>
I think its discussable if this represents a bug in the apns java lib or on<br>
aerogear side. Fact is however that it is severe and prevents messages from<br>
beeing persistet on apns at all. Aerogear code could workaround it very<br>
easily like that:<br>
<br>
--- instead of ----<br>
return new Date(System.currentTimeMillis() +<br>
EnhancedApnsNotification.MAXIMUM_EXPIRY * 1000L);<br>
---- should change to ---<br>
return new Date(EnhancedApnsNotification.MAXIMUM_EXPIRY * 1000L);<br>
---<br>
Anything bigger than 'EnhancedApnsNotification.MAXIMUM_EXPIRY * 1000L' will<br>
result in negative values sent to apns!<br>
<br>
Regards, Gunther Klein<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://aerogear-users.1116366.n5.nabble.com/Aerogear-UPS-1-1-0-Several-Severe-TTL-Bugs-for-APNS-tp435p438.html" rel="noreferrer" target="_blank">http://aerogear-users.1116366.n5.nabble.com/Aerogear-UPS-1-1-0-Several-Severe-TTL-Bugs-for-APNS-tp435p438.html</a><br>
<div class="HOEnZb"><div class="h5">Sent from the aerogear-users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Aerogear-users mailing list<br>
<a href="mailto:Aerogear-users@lists.jboss.org">Aerogear-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-users" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-users</a><br>
</div></div></blockquote></div><br></div>