<div dir="ltr">BTW.... when creating the iOS varian....<div><br></div><div><br></div><div style>developmentCertificate/Passphrase  and productionCertificate/Passphrase are the new Formular Values....... (needs to be updated)</div>
<div style><br></div><div style><br></div><div style>-M</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jul 9, 2013 at 6:41 PM, Matthias Wessendorf <span dir="ltr">&lt;<a href="mailto:matzew@apache.org" target="_blank">matzew@apache.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi,</div><div><br></div><div>I pushed an early version of it to [1]. It&#39;s a branch, not (yet) a PR.</div>
<div><br></div><div>Basically here is a how the payloads MIGHT look like: </div><div><br></div>
<div>Broadcast Payload:</div><div>{</div><div>  &quot;alert&quot;:&quot;HELLO!&quot;,</div><div>  &quot;sound&quot;:&quot;default&quot;,</div><div>  &quot;staging&quot;:&quot;development&quot;,</div><div>  &quot;badge&quot;:7,</div>

<div>  &quot;simple-push&quot;:&quot;version=123&quot;,</div><div>  &quot;someKey&quot;:&quot;some value&quot;,</div><div>  &quot;anotherCustomKey&quot;:&quot;some other value&quot;</div><div>}</div><div><br></div><div>Selective Send Payload:</div>

<div>{</div><div>  &quot;alias&quot; : [&quot;<a href="mailto:user@account.com" target="_blank">user@account.com</a>&quot;, &quot;<a href="mailto:someone@aerogear.org" target="_blank">someone@aerogear.org</a>&quot;, ....],</div>
<div>  &quot;deviceType&quot; : [&quot;iPad&quot;, &quot;AndroidTablet&quot;],</div>
<div>  &quot;staging&quot;:&quot;development&quot;,</div><div>  &quot;message&quot;: {</div><div>    &quot;alert&quot;:&quot;HELLO!&quot;,</div><div>    &quot;sound&quot;:&quot;default&quot;,</div><div>    &quot;badge&quot;:7,</div>

<div>    &quot;someKey&quot;:&quot;some value&quot;,</div><div>    &quot;anotherCustomKey&quot;:&quot;some other value&quot;</div><div>  },</div><div>  &quot;simple-push&quot;: {</div><div>    &quot;SomeCategory&quot;:&quot;version=123&quot;,</div>

<div>    &quot;anotherCategory&quot;:&quot;version=456&quot;</div><div>  }</div><div>}</div><div><br></div><div>Note: if the &quot;staging&quot; is NOT present, the PRODUCTION cert. (if present) will be used. If no cert is present ..... a WARNING is logged...</div>

<div><br></div><div>Also,..... only on iOS....</div><div><br></div><div><br></div><div>-Matthias</div><div><br></div><div>[1] <a href="https://github.com/aerogear/aerogear-unified-push-server/tree/ProdCerts" target="_blank">https://github.com/aerogear/aerogear-unified-push-server/tree/ProdCerts</a></div>

<div><br></div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jul 9, 2013 at 2:40 PM, Matthias Wessendorf <span dir="ltr">&lt;<a href="mailto:matzew@apache.org" target="_blank">matzew@apache.org</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote"><div>On Tue, Jul 9, 2013 at 2:21 PM, Matthias Wessendorf <span dir="ltr">&lt;<a href="mailto:matzew@apache.org" target="_blank">matzew@apache.org</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote"><div>On Tue, Jul 9, 2013 at 2:14 PM, Kris Borchers <span dir="ltr">&lt;<a href="mailto:kris@redhat.com" target="_blank">kris@redhat.com</a>&gt;</span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><br><div><div><div>On Jul 9, 2013, at 7:09 AM, Matthias Wessendorf &lt;<a href="mailto:matzew@apache.org" target="_blank">matzew@apache.org</a>&gt; wrote:</div>



<br><blockquote type="cite"><div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jul 9, 2013 at 2:04 PM, Kris Borchers <span dir="ltr">&lt;<a href="mailto:kris@redhat.com" target="_blank">kris@redhat.com</a>&gt;</span> wrote:<br>




<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"><br><div><div>
<div>On Jul 9, 2013, at 6:56 AM, Matthias Wessendorf &lt;<a href="mailto:matzew@apache.org" target="_blank">matzew@apache.org</a>&gt; wrote:</div><br><blockquote type="cite"><div dir="ltr">They could have a &quot;test&quot; variant :) I&#39;d hate to expose something like &quot;prod/dev&quot; to the sender, especially since that is ONLY iOS :)</div>




</blockquote><div><br></div></div>I guess a test variant would do the job. I&#39;m good either way on that. Probably another thing that would need clear documentation.</div></div></blockquote><div><br></div><div>I guess having a &quot;staging&quot; : &quot;production&quot; (or &quot;development&quot;) is also not a bad thing (helps, perhaps, already for AGPUSH-113.</div>




<div><br></div><div><br></div><div>What would the default be ? My current feeling is that &quot;production&quot; is always used, unless &quot;staging&quot; : &quot;development&quot; is included on the Sender API ?</div></div>



</div></div></blockquote><div><br></div></div>+1 for production default</div></div></blockquote><div><br></div></div><div>In that case, no &quot;isProd()&quot; is needed :-) </div></div></div></div></blockquote><div><br>


</div></div><div>I mean generally, if both can be &quot;active&quot; (we would just check if cert/passphrase is present)</div><div><div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><div><div><br></div><div><br></div><div> </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><div><div><br><blockquote type="cite"><div dir="ltr"><div class="gmail_extra">
<div class="gmail_quote">
<div><br></div><div><br></div><div>-Matthias</div><div><br></div><div><br></div><div> </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"><div><div><br><blockquote type="cite"><div dir="ltr"><div><br></div><div>However, on the long run... you can have a TEST PushEE server + a &quot;production&quot; one (AGPUSH-113)</div>

</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jul 9, 2013 at 1:50 PM, Kris Borchers <span dir="ltr">&lt;<a href="mailto:kris@redhat.com" target="_blank">kris@redhat.com</a>&gt;</span> wrote:<br>




<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"><br><div><div><div>On Jul 9, 2013, at 6:47 AM, Lucas Holmquist &lt;<a href="mailto:lholmqui@redhat.com" target="_blank">lholmqui@redhat.com</a>&gt; wrote:</div><br><blockquote type="cite">





<div style="word-wrap:break-word">Sounds good.<div><br></div><div>but i wonder if there would be a case where both could be active at the same time.</div><div><br></div><div>for example,  some company has an app that is in production,  now they need to make some modifications to it and want to make sure that they didn&#39;t break their push notifications, so they want to send some push notifications to the development version since they have separate development devices.</div>





<div><br></div><div>probably an edge case</div></div></blockquote><div><br></div></div>Hmmm. I&#39;m not sure how edge that is. Seems like the appropriate development model to be able to test a change while keeping the production version running. I think this is a good case for being able to have both active and would require the ability to distinguish between the two in the Sender API.<div>





<div><br><blockquote type="cite"><div style="word-wrap:break-word"><div><br></div><div><br><div><div>On Jul 9, 2013, at 7:25 AM, Kris Borchers &lt;<a href="mailto:kris@redhat.com" target="_blank">kris@redhat.com</a>&gt; wrote:</div>





<br><blockquote type="cite"><div style="word-wrap:break-word">That all seems sane to me. +1<div><br><div><div>On Jul 9, 2013, at 3:57 AM, Matthias Wessendorf &lt;<a href="mailto:matzew@apache.org" target="_blank">matzew@apache.org</a>&gt; wrote:</div>





<br><blockquote type="cite"><div dir="ltr"><div>Hello!</div><div><br></div><div>right now the iOS variant does _only_ support upload of an &quot;Development SSL Certificate&quot; (see [1]). I&#39;d like to add support for an &quot;Production SSL Certificate&quot; to the iOS Variant model class.</div>






<div><br></div><div>Besides the second certificate, the model class _should_ have a field to reflect the status (is production or not -&gt; isProduction()), so that only one certificate is ACTIVE. Internally the &quot;Sender API&quot; would connect against the differen Apple servers (prod. verus dev), based on the value of the isProduction() method. </div>






<div><br></div><div>Exposing &quot;production&quot; (or &quot;development&quot;) on the Sender API would be really ugly. With the above said, the Sender-API remains stable.</div><div><br></div><div>The value of &quot;isProduction&quot; would be updateable on the AdminUI (and the underlying RESTful endpoints).</div>






<div><br></div><div>-Matthias</div><div><br></div><div>[1] <a href="https://github.com/aerogear/aerogear-unified-push-server/blob/master/src/main/java/org/jboss/aerogear/connectivity/model/iOSVariant.java#L38-L41" target="_blank">https://github.com/aerogear/aerogear-unified-push-server/blob/master/src/main/java/org/jboss/aerogear/connectivity/model/iOSVariant.java#L38-L41</a></div>






<div><br></div><div><br></div>-- <br>Matthias Wessendorf <br><br>blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>






twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a>
</div>
_______________________________________________<br>aerogear-dev mailing list<br><a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a></blockquote>





</div><br></div></div>_______________________________________________<br>aerogear-dev mailing list<br><a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a></blockquote>





</div><br></div></div>_______________________________________________<br>aerogear-dev mailing list<br><a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a></blockquote>





</div></div></div><br></div><br>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Matthias Wessendorf <br>





<br>blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>





twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a>
</div>
_______________________________________________<br>aerogear-dev mailing list<br><a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a></blockquote>




</div></div><br></div><br>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Matthias Wessendorf <br>




<br>blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>




twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a>
</div></div>
_______________________________________________<br>aerogear-dev mailing list<br><a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a></blockquote>



</div></div></div><br></div><br>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br></blockquote></div></div></div><div><div><br><br clear="all"><div><br>
</div>-- <br>Matthias Wessendorf <br>
<br>blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>



twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a>
</div></div></div></div>
</blockquote></div></div></div><div><div><br><br clear="all"><div><br></div>-- <br>Matthias Wessendorf <br><br>blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>

sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>
twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a>
</div></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Matthias Wessendorf <br><br>blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>

twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a>
</div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Matthias Wessendorf <br><br>blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>
sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a>
</div>