<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,'Liberation Mono',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">"config"</span> <span class="">:</span> <span class="">{</span></div><div class="" id="file-gistfile1-json-LC3">
<span class="" style="color:navy">"ttl"</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">"content-available"</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">"simple-push"</span><span class="">:</span> <span class="" style="color:rgb(221,17,68)">"version=123"</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">"criteria"</span> <span class="">:</span> <span class="">{</span></div><div class="" id="file-gistfile1-json-LC8">
<span class="" style="color:navy">"alias"</span> <span class="">:</span> <span class="">[</span><span class="" style="color:rgb(221,17,68)">"<a href="mailto:user@account.com">user@account.com</a>"</span><span class="">,</span> <span class="" style="color:rgb(221,17,68)">"<a href="mailto:someone@aerogear.org">someone@aerogear.org</a>"</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">"categories"</span> <span class="">:</span> <span class="">[</span><span class="" style="color:rgb(221,17,68)">"someCategory"</span><span class="">,</span> <span class="" style="color:rgb(221,17,68)">"otherCategory"</span><span class="">],</span></div>
<div class="" id="file-gistfile1-json-LC10"> <span class="" style="color:navy">"deviceType"</span> <span class="">:</span> <span class="">[</span><span class="" style="color:rgb(221,17,68)">"iPad"</span><span class="">,</span> <span class="" style="color:rgb(221,17,68)">"AndroidTablet"</span><span class="">],</span></div>
<div class="" id="file-gistfile1-json-LC11"> <span class="" style="color:navy">"variants"</span> <span class="">:</span> <span class="">[</span><span class="" style="color:rgb(221,17,68)">"c3f0a94f-48de-4b77-a08e-68114460857e"</span><span class="">,</span> <span class="" style="color:rgb(221,17,68)">"444939cd-ae63-4ce1-96a4-de74b77e3737"</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">"message"</span><span class="">:</span> <span class="">{</span></div>
<div class="" id="file-gistfile1-json-LC15"> <span class="" style="color:navy">"alert"</span><span class="">:</span><span class="" style="color:rgb(221,17,68)">"HELLO!"</span><span class="">,</span></div>
<div class="" id="file-gistfile1-json-LC16"> <span class="" style="color:navy">"sound"</span><span class="">:</span><span class="" style="color:rgb(221,17,68)">"default"</span><span class="">,</span></div>
<div class="" id="file-gistfile1-json-LC17"> <span class="" style="color:navy">"badge"</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">"someKey"</span><span class="">:</span><span class="" style="color:rgb(221,17,68)">"some value"</span><span class="">,</span></div><div class="" id="file-gistfile1-json-LC19">
<span class="" style="color:navy">"anotherCustomKey"</span><span class="">:</span><span class="" style="color:rgb(221,17,68)">"some other value"</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>