<div dir="ltr">Hi Erik,<div><br></div><div>overall I am not against changes for 1.1.x, on our master branch. Here is something that Sebi mentioned a few month ago: <a href="https://issues.jboss.org/browse/AGPUSH-534">https://issues.jboss.org/browse/AGPUSH-534</a></div>
<div><br></div><div>With some API change, coming up, let&#39;s not forget about &quot;REST API Versioning&quot;, he discussed at our Face2Face meeting: <a href="http://oksoclap.com/p/jbrS1EHWkI">http://oksoclap.com/p/jbrS1EHWkI</a></div>
<div>(looks like in that session the majority preferred headers over URI).<br></div><div><br></div><div>We have to support the 1.0.0 APIs for quite a while.</div><div><br></div><div>-Matthias</div><div><br></div><div><br>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Aug 21, 2014 at 1:09 PM, Erik Jan de Wit <span dir="ltr">&lt;<a href="mailto:edewit@redhat.com" target="_blank">edewit@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">Hi,<div><br></div><div>With the upcoming windows support and simple push change (making simple push more like &#39;normal&#39;) the number of ‘special’ keys in our message is increasing. Right now we are mixing our ‘special’ keys with those the user can add, but we keep simple push out of it:</div>
<div><br></div><div><pre style="font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:14px;margin-top:0px;margin-bottom:0px;padding:16px;overflow:auto;line-height:1.45;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;word-wrap:normal;word-break:normal;color:rgb(51,51,51);background-color:rgb(247,247,247)">
<span>{</span>
       <span style="color:navy">&quot;variants&quot;</span> <span>:</span> <span>[</span><span style="color:rgb(221,17,68)">&quot;c3f0a94f-48de-4b77-a08e-68114460857e&quot;</span><span>,</span> <span style="color:rgb(221,17,68)">&quot;444939cd-ae63-4ce1-96a4-de74b77e3737&quot;</span> <span style="color:rgb(166,23,23);background-color:rgb(227,210,210)">....</span><span>],</span>
       <span style="color:navy">&quot;alias&quot;</span> <span>:</span> <span>[</span><span style="color:rgb(221,17,68)">&quot;<a href="mailto:user@account.com" target="_blank">user@account.com</a>&quot;</span><span>,</span> <span style="color:rgb(221,17,68)">&quot;<a href="mailto:someone@aerogear.org" target="_blank">someone@aerogear.org</a>&quot;</span><span>,</span> <span style="color:rgb(166,23,23);background-color:rgb(227,210,210)">....</span><span>],</span>
       <span style="color:navy">&quot;categories&quot;</span> <span>:</span> <span>[</span><span style="color:rgb(221,17,68)">&quot;someCategory&quot;</span><span>,</span> <span style="color:rgb(221,17,68)">&quot;otherCategory&quot;</span><span>],</span>
       <span style="color:navy">&quot;deviceType&quot;</span> <span>:</span> <span>[</span><span style="color:rgb(221,17,68)">&quot;iPad&quot;</span><span>,</span> <span style="color:rgb(221,17,68)">&quot;AndroidTablet&quot;</span><span>],</span>
       <span style="color:navy">&quot;ttl&quot;</span> <span>:</span> <span style="color:rgb(0,153,153)">3600</span><span>,</span>
       <span style="color:navy">&quot;message&quot;</span><span>:</span> <span>{</span>
         <span style="color:navy">&quot;alert&quot;</span><span>:</span><span style="color:rgb(221,17,68)">&quot;HELLO!&quot;</span><span>,</span>
         <span style="color:navy">&quot;sound&quot;</span><span>:</span><span style="color:rgb(221,17,68)">&quot;default&quot;</span><span>,</span>
         <span style="color:navy">&quot;badge&quot;</span><span>:</span><span style="color:rgb(0,153,153)">7</span><span>,</span>
         <span style="color:navy">&quot;content-available&quot;</span> <span>:</span> <span style="font-weight:bold">true</span><span>,</span>
         <span style="color:navy">&quot;action-category&quot;</span> <span>:</span> <span style="color:rgb(221,17,68)">&quot;some_category&quot;</span><span>,</span>
         
         <span style="color:navy">&quot;someKey&quot;</span><span>:</span><span style="color:rgb(221,17,68)">&quot;some value&quot;</span><span>,</span>
         <span style="color:navy">&quot;anotherCustomKey&quot;</span><span>:</span><span style="color:rgb(221,17,68)">&quot;some other value&quot;</span>
       <span>},</span></pre><pre style="font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:14px;margin-top:0px;margin-bottom:0px;padding:16px;overflow:auto;line-height:1.45;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;word-wrap:normal;word-break:normal;color:rgb(51,51,51);background-color:rgb(247,247,247)">
<span style="line-height:1.45;color:navy">&quot;simple-push&quot;</span><span style="line-height:1.45">:</span><span style="line-height:1.45"> </span><span style="line-height:1.45;color:rgb(221,17,68)">&quot;version=123”</span></pre>
<pre style="font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:14px;margin-top:0px;margin-bottom:0px;padding:16px;overflow:auto;line-height:1.45;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;word-wrap:normal;word-break:normal;color:rgb(51,51,51);background-color:rgb(247,247,247)">
<span style="line-height:1.45">}</span></pre><div><br></div></div><div><br></div><div>As simple push is going to be more like ‘normal’ push why not move the simple-push into the message as well. As for the windows support there are a lot more types of messages you can send. The most normal form is called ‘toast’, but there are other ones for when you app is pinned to the home screen. Then one can send message that contain pictures. To support all of this we need something like this: <a href="https://gist.github.com/edewit/305d76c31960aa6254a9" target="_blank">https://gist.github.com/edewit/305d76c31960aa6254a9</a></div>
<div><br></div><div>Adding all these ‘special’ keys will make it easier to get into a conflict with the users own data, so I propose we put the user data into a separate data object, like so:</div><div><br></div><div><pre style="font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:14px;margin-top:0px;margin-bottom:0px;padding:16px;overflow:auto;line-height:1.45;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;word-wrap:normal;word-break:normal;color:rgb(51,51,51);background-color:rgb(247,247,247)">
<span>{</span>
       <span style="color:navy">&quot;variants&quot;</span> <span>:</span> <span>[</span><span style="color:rgb(221,17,68)">&quot;c3f0a94f-48de-4b77-a08e-68114460857e&quot;</span><span>,</span> <span style="color:rgb(221,17,68)">&quot;444939cd-ae63-4ce1-96a4-de74b77e3737&quot;</span> <span style="color:rgb(166,23,23);background-color:rgb(227,210,210)">....</span><span>],</span>
       <span style="color:navy">&quot;alias&quot;</span> <span>:</span> <span>[</span><span style="color:rgb(221,17,68)">&quot;<a href="mailto:user@account.com" target="_blank">user@account.com</a>&quot;</span><span>,</span> <span style="color:rgb(221,17,68)">&quot;<a href="mailto:someone@aerogear.org" target="_blank">someone@aerogear.org</a>&quot;</span><span>,</span> <span style="color:rgb(166,23,23);background-color:rgb(227,210,210)">....</span><span>],</span>
       <span style="color:navy">&quot;categories&quot;</span> <span>:</span> <span>[</span><span style="color:rgb(221,17,68)">&quot;someCategory&quot;</span><span>,</span> <span style="color:rgb(221,17,68)">&quot;otherCategory&quot;</span><span>],</span>
       <span style="color:navy">&quot;deviceType&quot;</span> <span>:</span> <span>[</span><span style="color:rgb(221,17,68)">&quot;iPad&quot;</span><span>,</span> <span style="color:rgb(221,17,68)">&quot;AndroidTablet&quot;</span><span>],</span>
       <span style="color:navy">&quot;ttl&quot;</span> <span>:</span> <span style="color:rgb(0,153,153)">3600</span><span>,</span>
       <span style="color:navy">&quot;message&quot;</span><span>:</span> <span>{</span>
         <span style="color:navy">&quot;alert&quot;</span><span>:</span><span style="color:rgb(221,17,68)">&quot;HELLO!&quot;</span><span>,</span>
         <span style="color:navy">&quot;sound&quot;</span><span>:</span><span style="color:rgb(221,17,68)">&quot;default&quot;</span><span>,</span>
         <span style="color:navy">&quot;badge&quot;</span><span>:</span><span style="color:rgb(0,153,153)">7</span><span>,</span>
         <span style="color:navy">&quot;content-available&quot;</span> <span>:</span> <span style="font-weight:bold">true</span><span>,</span>
         <span style="color:navy">&quot;action-category&quot;</span> <span>:</span> <span style="color:rgb(221,17,68)">&quot;some_category&quot;</span><span>,</span>
<b>         <span style="color:navy">&quot;simple-push&quot;</span><span>:</span> <span style="color:rgb(221,17,68)">&quot;version=123&quot;</span><span>,</span></b>
         <span style="color:navy"><b>&quot;data&quot;</b></span> <span>:</span> <span>{</span>
             <span style="color:navy">&quot;someKey&quot;</span><span>:</span><span style="color:rgb(221,17,68)">&quot;some value&quot;</span><span>,</span>
             <span style="color:navy">&quot;anotherCustomKey&quot;</span><span>:</span><span style="color:rgb(221,17,68)">&quot;some other value&quot;</span>
            <span>}</span>
       <span>}</span>
<span>}</span></pre><div><br></div></div><div><br></div><div>WDYT?</div><div><br></div><div>Cheers,</div><div><span style="white-space:pre-wrap">        </span>Erik Jan</div></div><br>_______________________________________________<br>

aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org">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>