<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Oct 27, 2014, at 9:20 AM, Erik Jan de Wit &lt;<a href="mailto:edewit@redhat.com" class="">edewit@redhat.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=windows-1252" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">On 27 Oct,2014, at 14:15 , Lucas Holmquist &lt;<a href="mailto:lholmqui@redhat.com" class="">lholmqui@redhat.com</a>&gt; wrote:<br class=""><div class=""><br class="Apple-interchange-newline"><blockquote type="cite" class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><br class=""></div><div class="">So i’ve run into a bit of a problem, I’m trying to send notifications, &nbsp;using&nbsp;<a href="https://github.com/aerogear/aerogear-unifiedpush-server/blob/master/push/src/main/java/org/jboss/aerogear/unifiedpush/message/sender/APNsPushNotificationSender.java#L52" class="">https://github.com/aerogear/aerogear-unifiedpush-server/blob/master/push/src/main/java/org/jboss/aerogear/unifiedpush/message/sender/APNsPushNotificationSender.java#L52</a></div><div class=""><br class=""></div><div class="">but i’m not sure how to also tell it to use the new SafarVariant.class that i’ve created.&nbsp;</div></div></blockquote><div class=""><br class=""></div><div class="">Right now a sender is configured to send notifications for one specific variant type, this mapping is configured on the top of the class:</div><div class=""><a href="https://github.com/aerogear/aerogear-unifiedpush-server/blob/master/push/src/main/java/org/jboss/aerogear/unifiedpush/message/sender/APNsPushNotificationSender.java#L40" class="">https://github.com/aerogear/aerogear-unifiedpush-server/blob/master/push/src/main/java/org/jboss/aerogear/unifiedpush/message/sender/APNsPushNotificationSender.java#L40</a></div><div class=""><br class=""></div><div class="">so APNsPushNotificationSender will only be use for&nbsp;<span style="background-color: rgb(248, 238, 199); color: rgb(51, 51, 51); font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; line-height: 16.7999992370605px; white-space: pre;" class="">iOSVariant</span>&nbsp;variants, so either we change the way this works or you create a new Sender ( that extends this one maybe )</div></div></div></div></blockquote><div><br class=""></div><div>I think i’ll just create a new sender of now just to get something working since the SafariVariant and iOSVariant will be combined into an APNsVariant in the near future.</div><div><br class=""></div><div><br class=""></div><br class=""><blockquote type="cite" class=""><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><div class=""><br class=""></div><div class="">Cheers,</div><div class=""><span class="Apple-tab-span" style="white-space:pre">        </span>Erik Jan</div><br class=""></div><br class=""></div>_______________________________________________<br class="">aerogear-dev mailing list<br class=""><a href="mailto:aerogear-dev@lists.jboss.org" class="">aerogear-dev@lists.jboss.org</a><br class="">https://lists.jboss.org/mailman/listinfo/aerogear-dev</div></blockquote></div><br class=""></body></html>