<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 class="" style="font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace;font-size:12px;line-height:12.800000190734863px;width:744px;margin-top:0px;margin-bottom:0px;padding:0px;color:rgb(0,0,0)"><div class="" id="file-gistfile1-json-LC1">
<span class="">{</span></div><div class="" id="file-gistfile1-json-LC2">  <span class="" style="color:navy">&quot;config&quot;</span> <span class="">:</span> <span class="">{</span></div><div class="" id="file-gistfile1-json-LC3">
     <span class="" style="color:navy">&quot;ttl&quot;</span> <span class="">:</span> <span class="" style="color:rgb(0,153,153)">3600</span><span class="">,</span></div><div class="" id="file-gistfile1-json-LC4">     <span class="" style="color:navy">&quot;content-available&quot;</span> <span class="">:</span> <span class="" style="font-weight:bold">true</span><span class="">,</span></div>
<div class="" id="file-gistfile1-json-LC5">     <span class="" style="color:navy">&quot;simple-push&quot;</span><span class="">:</span> <span class="" style="color:rgb(221,17,68)">&quot;version=123&quot;</span></div><div class="" id="file-gistfile1-json-LC6">
  <span class="">},</span></div><div class="" id="file-gistfile1-json-LC7">  <span class="" style="color:navy">&quot;criteria&quot;</span> <span class="">:</span> <span class="">{</span></div><div class="" id="file-gistfile1-json-LC8">
      <span class="" style="color:navy">&quot;alias&quot;</span> <span class="">:</span> <span class="">[</span><span class="" style="color:rgb(221,17,68)">&quot;<a href="mailto:user@account.com">user@account.com</a>&quot;</span><span class="">,</span> <span class="" style="color:rgb(221,17,68)">&quot;<a href="mailto:someone@aerogear.org">someone@aerogear.org</a>&quot;</span><span class="">,</span> <span class="" style="color:rgb(166,23,23);background-color:rgb(227,210,210)">....</span><span class="">],</span></div>
<div class="" id="file-gistfile1-json-LC9">      <span class="" style="color:navy">&quot;categories&quot;</span> <span class="">:</span> <span class="">[</span><span class="" style="color:rgb(221,17,68)">&quot;someCategory&quot;</span><span class="">,</span> <span class="" style="color:rgb(221,17,68)">&quot;otherCategory&quot;</span><span class="">],</span></div>
<div class="" id="file-gistfile1-json-LC10">      <span class="" style="color:navy">&quot;deviceType&quot;</span> <span class="">:</span> <span class="">[</span><span class="" style="color:rgb(221,17,68)">&quot;iPad&quot;</span><span class="">,</span> <span class="" style="color:rgb(221,17,68)">&quot;AndroidTablet&quot;</span><span class="">],</span></div>
<div class="" id="file-gistfile1-json-LC11">      <span class="" style="color:navy">&quot;variants&quot;</span> <span class="">:</span> <span class="">[</span><span class="" style="color:rgb(221,17,68)">&quot;c3f0a94f-48de-4b77-a08e-68114460857e&quot;</span><span class="">,</span> <span class="" style="color:rgb(221,17,68)">&quot;444939cd-ae63-4ce1-96a4-de74b77e3737&quot;</span><span class="">]</span> </div>
<div class="" id="file-gistfile1-json-LC12">  <span class="">}</span></div><div class="" id="file-gistfile1-json-LC13">  <span class="">,</span></div><div class="" id="file-gistfile1-json-LC14">  <span class="" style="color:navy">&quot;message&quot;</span><span class="">:</span> <span class="">{</span></div>
<div class="" id="file-gistfile1-json-LC15">    <span class="" style="color:navy">&quot;alert&quot;</span><span class="">:</span><span class="" style="color:rgb(221,17,68)">&quot;HELLO!&quot;</span><span class="">,</span></div>
<div class="" id="file-gistfile1-json-LC16">    <span class="" style="color:navy">&quot;sound&quot;</span><span class="">:</span><span class="" style="color:rgb(221,17,68)">&quot;default&quot;</span><span class="">,</span></div>
<div class="" id="file-gistfile1-json-LC17">    <span class="" style="color:navy">&quot;badge&quot;</span><span class="">:</span><span class="" style="color:rgb(0,153,153)">7</span><span class="">,</span></div><div class="" id="file-gistfile1-json-LC18">
    <span class="" style="color:navy">&quot;someKey&quot;</span><span class="">:</span><span class="" style="color:rgb(221,17,68)">&quot;some value&quot;</span><span class="">,</span></div><div class="" id="file-gistfile1-json-LC19">
    <span class="" style="color:navy">&quot;anotherCustomKey&quot;</span><span class="">:</span><span class="" style="color:rgb(221,17,68)">&quot;some other value&quot;</span></div><div class="" id="file-gistfile1-json-LC20">
  <span class="">},</span></div><div class="" id="file-gistfile1-json-LC21">  </div><div class="" id="file-gistfile1-json-LC22"><span class="">}</span></div><div class="" id="file-gistfile1-json-LC22"><span class=""><br></span></div>
<div class="" id="file-gistfile1-json-LC22"><span class=""><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 class="" id="file-gistfile1-json-LC22">
<span class=""><span style="color:rgb(34,34,34);font-family:arial;font-size:small;line-height:normal;white-space:normal"><br></span></span></div><div class="" id="file-gistfile1-json-LC22"><span class=""><span style="color:rgb(34,34,34);font-family:arial;font-size:small;line-height:normal;white-space:normal">Sebi</span></span></div>
<div class="" id="file-gistfile1-json-LC22"><span class=""><br></span></div><div class="" id="file-gistfile1-json-LC22"><span class="">[1]</span><a href="http://aerogear.org/docs/specs/aerogear-push-messages/">http://aerogear.org/docs/specs/aerogear-push-messages/</a></div>
</pre></div></div></div>