<div dir="ltr">Hi,<div><br></div><div>Since the API Version PR  [1] has been merged we can start the work on AGPUSH-534 to change the format of the Push message. There has been some discussions on this thread and this gist <a href="https://gist.github.com/sebastienblanc/8897596">https://gist.github.com/sebastienblanc/8897596</a> </div><div>Just want to be sure everyone is okay or have remarks before starting implementing this.</div><div><br></div><div>Questions ? </div><div><br></div><div>Sebi</div><div><br></div><div>[1] <a href="https://github.com/aerogear/aerogear-unifiedpush-server/pull/394">https://github.com/aerogear/aerogear-unifiedpush-server/pull/394</a></div><div>[2] <a href="https://issues.jboss.org/browse/AGPUSH-534">https://issues.jboss.org/browse/AGPUSH-534</a></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 10, 2014 at 4:46 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"><span class=""><br><br>On Monday, February 10, 2014, Sebastien Blanc &lt;<a href="mailto:scm.blanc@gmail.com" target="_blank">scm.blanc@gmail.com</a>&gt; 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">On Mon, Feb 10, 2014 at 2:23 PM, Lucas Holmquist <span dir="ltr">&lt;<a>lholmqui@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">here is the current format for comparison<div><br></div><div><a href="https://gist.github.com/lholmquist/8915817" target="_blank">https://gist.github.com/lholmquist/8915817</a></div>

<div><br></div><div>+1 to being more structured.</div><div><br></div><div>one thing though,  in the current format, simplePush is not part of the message, but it&#39;s own thing</div></div></blockquote><div>Yeah, that&#39;s why I put it in the config section in my first version but Matzew suggested it was more part of the message payload  </div>
</div></div></div></blockquote><div><br></div><div><br></div></span><div>Nope to<span></span> config; should stay its own, does not (IMO) make sense to include in tve message for richer platforms like Android/iOS</div><div class="HOEnZb"><div class="h5"><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">
<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><div><div><br><div><div>On Feb 9, 2014, at 9:06 AM, Sebastien Blanc &lt;<a>scm.blanc@gmail.com</a>&gt; wrote:</div>

<br><blockquote type="cite"><div dir="ltr"><br><div><br><br><div>On Sun, Feb 9, 2014 at 2:14 PM, Matthias Wessendorf <span dir="ltr">&lt;<a>matzew@apache.org</a>&gt;</span> wrote:<br>

<blockquote 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 dir="ltr"><br><div><br><br><div>

<div><div>On Sun, Feb 9, 2014 at 12:06 PM, Sebastien Blanc <span dir="ltr">&lt;<a>scm.blanc@gmail.com</a>&gt;</span> wrote:<br>
<blockquote 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 dir="ltr">Hi,<div>I was looking at our current Push Message Format[1] and I was wonderimg if you should not add some more structure to it, decoupling config, criterias and the message itself : </div>



<div><br><div><br>
</div><div><pre style="line-height:12.800000190734863px;width:744px;font-size:12px;margin-bottom:0px;font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace;margin-top:0px;padding:0px"><div>
<span>{</span></div><div>  <span style="color:navy">&quot;config&quot;</span> <span>:</span> <span>{</span></div><div>
     <span style="color:navy">&quot;ttl&quot;</span> <span>:</span> <span style="color:rgb(0,153,153)">3600</span><span>,</span></div><div>     <span style="color:navy">&quot;content-available&quot;</span> <span>:</span> <span style="font-weight:bold">true</span><span>,</span></div>




<div>     <span style="color:navy">&quot;simple-push&quot;</span><span>:</span> <span style="color:rgb(221,17,68)">&quot;version=123&quot;</span></div><div>
  <span>},</span></div><div>  <span style="color:navy">&quot;criteria&quot;</span> <span>:</span> <span>{</span></div><div>
      <span style="color:navy">&quot;alias&quot;</span> <span>:</span> <span>[</span><span style="color:rgb(221,17,68)">&quot;<a>user@account.com</a>&quot;</span><span>,</span> <span style="color:rgb(221,17,68)">&quot;<a>someone@aerogear.org</a>&quot;</span><span>,</span> <span style="color:rgb(166,23,23);background-color:rgb(227,210,210)">....</span><span>],</span></div>




<div>      <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></div>




<div>      <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></div>




<div>      <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>]</span> </div>




<div>  <span>}</span></div><div>  <span>,</span></div><div>  <span style="color:navy">&quot;message&quot;</span><span>:</span> <span>{</span></div>
<div>    <span style="color:navy">&quot;alert&quot;</span><span>:</span><span style="color:rgb(221,17,68)">&quot;HELLO!&quot;</span><span>,</span></div>
<div>    <span style="color:navy">&quot;sound&quot;</span><span>:</span><span style="color:rgb(221,17,68)">&quot;default&quot;</span><span>,</span></div>
<div>    <span style="color:navy">&quot;badge&quot;</span><span>:</span><span style="color:rgb(0,153,153)">7</span><span>,</span></div><div>
    <span style="color:navy">&quot;someKey&quot;</span><span>:</span><span style="color:rgb(221,17,68)">&quot;some value&quot;</span><span>,</span></div><div>
    <span style="color:navy">&quot;anotherCustomKey&quot;</span><span>:</span><span style="color:rgb(221,17,68)">&quot;some other value&quot;</span></div><div>
  <span>},</span></div><div>  </div><div><span>}</span></div><div><span><br></span></div>
<div><span><span style="color:rgb(34,34,34);font-family:arial;font-size:small;line-height:normal;white-space:normal">wdyt ? </span><br></span></div><div></div></pre></div></div></div></blockquote><div><br></div></div></div>


<div>interesting idea - it looks better structured. </div>
<div><br></div><div>Re</div></div></div></div></blockquote></div></div></div></blockquote></div></div></div></div></div></blockquote></div><br></div></div>
</blockquote><br><br></div></div><span class="HOEnZb"><font color="#888888">-- <br>Sent from Gmail Mobile<br>
</font></span><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></div>