<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">so i wrote a little blog post on this, &nbsp;<a href="http://blog.lholmquist.org/safari-push-notifications/" class="">http://blog.lholmquist.org/safari-push-notifications/</a><div class=""><br class=""></div><div class=""><br class=""></div><div class="">So i’ve made the iOSVariant an APNsVariant, &nbsp;but now i have a decision.</div><div class=""><br class=""></div><div class="">currently on the safari-push branch, &nbsp;<a href="https://github.com/aerogear/aerogear-unifiedpush-server/tree/safari-push" class="">https://github.com/aerogear/aerogear-unifiedpush-server/tree/safari-push</a>, &nbsp;i’ve changed the UI to this: &nbsp;</div><div class=""><br class=""></div><div class=""><a href="http://blog.lholmquist.org/content/images/2014/Nov/Screen_Shot_2014_11_05_at_11_09_49_AM.png" class="">http://blog.lholmquist.org/content/images/2014/Nov/Screen_Shot_2014_11_05_at_11_09_49_AM.png</a></div><div class=""><br class=""></div><div class="">where there is 1 variant to choose from for iOS and Safari. &nbsp;And not really and way to tell the difference if a variant is for safari or for iOS</div><div class=""><br class=""></div><div class="">I’m wondering if there should be 2 selections that hit the same(update from ios) “apns" endpoint, and also a field on the APNsVariant to differentiate between iOS and Safari, &nbsp;i can see this as being something for analytics</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">If we agree to go this route, &nbsp;then we can do the same when we update the GCMVariant</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Oct 30, 2014, at 9:13 AM, Lucas Holmquist &lt;<a href="mailto:lholmqui@redhat.com" class="">lholmqui@redhat.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div 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="">hmm, indeed, &nbsp;let me try that also<br class=""><div class=""><blockquote type="cite" class=""><div class="">On Oct 30, 2014, at 2:57 AM, Matthias Wessendorf &lt;<a href="mailto:matzew@apache.org" class="">matzew@apache.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">I tried the same, again with -d (rhc -d), that worked fine....<div class=""><br class=""></div><div class=""><br class=""></div><div class="">hrm...</div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Thu, Oct 30, 2014 at 7:48 AM, Matthias Wessendorf <span dir="ltr" class="">&lt;<a href="mailto:matzew@apache.org" target="_blank" class="">matzew@apache.org</a>&gt;</span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="">hahaha, than it disappeared ??? :-)&nbsp;<div class=""><br class=""></div><div class="">looks like the 'delete' was triggered by the 504 ?&nbsp;</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br class=""><div class="gmail_quote">On Thu, Oct 30, 2014 at 7:47 AM, Matthias Wessendorf <span dir="ltr" class="">&lt;<a href="mailto:matzew@apache.org" target="_blank" class="">matzew@apache.org</a>&gt;</span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="">Here is what I did, on command line:<div class="">rhc app create --no-git safari "<a href="https://cartreflect-claytondev.rhcloud.com/reflect?github=lholmquist/openshift-origin-cartridge-aerogear-push-wildfly&amp;commit=086fe4f75f8991e7780c9df078c7371377c68aa2" target="_blank" class="">https://cartreflect-claytondev.rhcloud.com/reflect?github=lholmquist/openshift-origin-cartridge-aerogear-push-wildfly&amp;commit=086fe4f75f8991e7780c9df078c7371377c68aa2</a>"<br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">One the console, I am getting:</div><div class="">Creating application 'safari' ... Server returned an unexpected error code: 504<br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">but.... well, here is the server -&gt;&nbsp;<a href="https://safari-pushee.rhcloud.com/ag-push" target="_blank" class="">https://safari-pushee.rhcloud.com/ag-push</a></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">What I do not understand it the 504 :)&nbsp;</div><div class=""><br class=""></div><div class=""><br class=""><div class=""><br class=""></div><div class=""><br class=""></div></div></div><div class=""><div class=""><div class="gmail_extra"><br class=""><div class="gmail_quote">On Wed, Oct 29, 2014 at 10:01 PM, Matthias Wessendorf <span dir="ltr" class="">&lt;<a href="mailto:matzew@apache.org" target="_blank" class="">matzew@apache.org</a>&gt;</span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">any log from rhc client?<div class=""><div class=""><span class=""></span><br class=""><br class="">On Wednesday, October 29, 2014, Lucas Holmquist &lt;<a href="mailto:lholmqui@redhat.com" target="_blank" class="">lholmqui@redhat.com</a>&gt; wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="">i’ve created a safari-push branch on my fork of the open shift cartridge,&nbsp;<div class=""><br class=""></div><div class=""><a href="https://github.com/lholmquist/openshift-origin-cartridge-aerogear-push-wildfly/tree/safari-push" target="_blank" class="">https://github.com/lholmquist/openshift-origin-cartridge-aerogear-push-wildfly/tree/safari-push</a></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">i’ve been trying to create an app with it but haven’t been successful, &nbsp;perhaps something i’m doing, &nbsp;anyone mind giving it a try<br class=""><div class=""><blockquote type="cite" class=""><div class="">On Oct 28, 2014, at 3:35 PM, Lucas Holmquist &lt;<a class="">lholmqui@redhat.com</a>&gt; wrote:</div><br class=""><div class=""><div style="word-wrap:break-word" class=""><div class=""><br class=""></div><div class="">The branch on the main repo &nbsp;<a href="https://github.com/aerogear/aerogear-unifiedpush-server/tree/safari-push" target="_blank" class="">https://github.com/aerogear/aerogear-unifiedpush-server/tree/safari-push</a></div><div class=""><br class=""></div><div class="">subsequent PR’s will target this one</div><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Oct 28, 2014, at 3:21 PM, Lucas Holmquist &lt;<a class="">lholmqui@redhat.com</a>&gt; wrote:</div><br class=""><div class=""><div style="word-wrap:break-word" class="">Here is the initial addition in one of my branches: &nbsp;<a href="https://github.com/lholmquist/aerogear-unified-push-server/tree/safari-push" target="_blank" class="">https://github.com/lholmquist/aerogear-unified-push-server/tree/safari-push</a><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Oct 27, 2014, at 9:42 AM, Matthias Wessendorf &lt;<a class="">matzew@apache.org</a>&gt; wrote:</div><br class=""><div class=""><div dir="ltr" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class=""><div class="gmail_extra"><br class=""><br class=""><div class="gmail_quote">On Mon, Oct 27, 2014 at 2:28 PM, Lucas Holmquist<span class="">&nbsp;</span><span dir="ltr" class="">&lt;<a class="">lholmqui@redhat.com</a>&gt;</span><span class="">&nbsp;</span>wrote:<br class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word" class=""><br class=""><div class=""><div class=""><div class=""><blockquote type="cite" class=""><div class="">On Oct 27, 2014, at 9:20 AM, Erik Jan de Wit &lt;<a class="">edewit@redhat.com</a>&gt; wrote:</div><br class=""><div class=""><div style="word-wrap:break-word" class="">On 27 Oct,2014, at 14:15 , Lucas Holmquist &lt;<a class="">lholmqui@redhat.com</a>&gt; wrote:<br class=""><div class=""><br class=""><blockquote type="cite" class=""><div style="word-wrap:break-word" 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" target="_blank" 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" target="_blank" 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-wrap" 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 class=""><br class=""></div></div></div><div class="">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></div></blockquote><div class=""><br class=""></div><div class="">sounds reasonable on getting this started</div><div class=""><br class=""></div><div class="">-M&nbsp;</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word" class=""><div class=""><div class=""><br class=""></div><div class=""><br class=""></div><br class=""><blockquote type="cite" class=""><div class=""><div style="word-wrap:break-word" class=""><div class=""><div class=""><br class=""></div><div class="">Cheers,</div><div class=""><span style="white-space:pre-wrap" class="">        </span>Erik Jan</div><br class=""></div><br class=""></div><span class="">_______________________________________________<br class="">aerogear-dev mailing list<br class=""><a class="">aerogear-dev@lists.jboss.org</a><br class=""><a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank" class="">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a></span></div></blockquote></div><br class=""></div><br class="">_______________________________________________<br class="">aerogear-dev mailing list<br class=""><a class="">aerogear-dev@lists.jboss.org</a><br class=""><a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank" class="">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br class=""></blockquote></div><br class=""><br clear="all" class=""><div class=""><br class=""></div>--<span class="">&nbsp;</span><br class="">Matthias Wessendorf<span class="">&nbsp;</span><br class=""><br class="">blog:<span class="">&nbsp;</span><a href="http://matthiaswessendorf.wordpress.com/" target="_blank" class="">http://matthiaswessendorf.wordpress.com/</a><br class="">sessions:<span class="">&nbsp;</span><a href="http://www.slideshare.net/mwessendorf" target="_blank" class="">http://www.slideshare.net/mwessendorf</a><br class="">twitter:<span class="">&nbsp;</span><a href="http://twitter.com/mwessendorf" target="_blank" class="">http://twitter.com/mwessendorf</a></div></div><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important" class="">_______________________________________________</span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class=""><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important" class="">aerogear-dev mailing list</span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class=""><a style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class="">aerogear-dev@lists.jboss.org</a><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class=""><a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank" class="">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a></div></blockquote></div><br class=""></div>_______________________________________________<br class="">aerogear-dev mailing list<br class=""><a class="">aerogear-dev@lists.jboss.org</a><br class=""><a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank" class="">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a></div></blockquote></div><br class=""></div>_______________________________________________<br class="">aerogear-dev mailing list<br class=""><a class="">aerogear-dev@lists.jboss.org</a><br class=""><a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank" class="">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a></div></blockquote></div><br class=""></div></div></blockquote><br class=""><br class=""></div></div><div class=""><div class="">-- <br class="">Sent from Gmail Mobile<br class="">
</div></div></blockquote></div><br class=""><br clear="all" class=""><div class=""><br class=""></div>-- <br class="">Matthias Wessendorf <br class=""><br class="">blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank" class="">http://matthiaswessendorf.wordpress.com/</a><br class="">sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank" class="">http://www.slideshare.net/mwessendorf</a><br class="">twitter: <a href="http://twitter.com/mwessendorf" target="_blank" class="">http://twitter.com/mwessendorf</a>
</div>
</div></div></blockquote></div><br class=""><br clear="all" class=""><div class=""><br class=""></div>-- <br class="">Matthias Wessendorf <br class=""><br class="">blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank" class="">http://matthiaswessendorf.wordpress.com/</a><br class="">sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank" class="">http://www.slideshare.net/mwessendorf</a><br class="">twitter: <a href="http://twitter.com/mwessendorf" target="_blank" class="">http://twitter.com/mwessendorf</a>
</div>
</div></div></blockquote></div><br class=""><br clear="all" class=""><div class=""><br class=""></div>-- <br class="">Matthias Wessendorf <br class=""><br class="">blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank" class="">http://matthiaswessendorf.wordpress.com/</a><br class="">sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank" class="">http://www.slideshare.net/mwessendorf</a><br class="">twitter: <a href="http://twitter.com/mwessendorf" target="_blank" class="">http://twitter.com/mwessendorf</a>
</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=""><a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" class="">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a></div></blockquote></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=""></div></body></html>