<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">here is the current format for comparison<div><br></div><div><a href="https://gist.github.com/lholmquist/8915817">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's own thing<br><div><div>On Feb 9, 2014, at 9:06 AM, Sebastien Blanc <<a href="mailto:scm.blanc@gmail.com">scm.blanc@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Feb 9, 2014 at 2:14 PM, Matthias Wessendorf <span dir="ltr"><<a href="mailto:matzew@apache.org" target="_blank">matzew@apache.org</a>></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 dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">
<div><div class="h5">On Sun, Feb 9, 2014 at 12:06 PM, Sebastien Blanc <span dir="ltr"><<a href="mailto:scm.blanc@gmail.com" target="_blank">scm.blanc@gmail.com</a>></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 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,'Liberation Mono',Courier,monospace;margin-top:0px;padding:0px"><div>
<span>{</span></div><div> <span style="color:navy">"config"</span> <span>:</span> <span>{</span></div><div>
<span style="color:navy">"ttl"</span> <span>:</span> <span style="color:rgb(0,153,153)">3600</span><span>,</span></div><div> <span style="color:navy">"content-available"</span> <span>:</span> <span style="font-weight:bold">true</span><span>,</span></div>
<div> <span style="color:navy">"simple-push"</span><span>:</span> <span style="color:rgb(221,17,68)">"version=123"</span></div><div>
<span>},</span></div><div> <span style="color:navy">"criteria"</span> <span>:</span> <span>{</span></div><div>
<span style="color:navy">"alias"</span> <span>:</span> <span>[</span><span style="color:rgb(221,17,68)">"<a href="mailto:user@account.com" target="_blank">user@account.com</a>"</span><span>,</span> <span style="color:rgb(221,17,68)">"<a href="mailto:someone@aerogear.org" target="_blank">someone@aerogear.org</a>"</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">"categories"</span> <span>:</span> <span>[</span><span style="color:rgb(221,17,68)">"someCategory"</span><span>,</span> <span style="color:rgb(221,17,68)">"otherCategory"</span><span>],</span></div>
<div> <span style="color:navy">"deviceType"</span> <span>:</span> <span>[</span><span style="color:rgb(221,17,68)">"iPad"</span><span>,</span> <span style="color:rgb(221,17,68)">"AndroidTablet"</span><span>],</span></div>
<div> <span style="color:navy">"variants"</span> <span>:</span> <span>[</span><span style="color:rgb(221,17,68)">"c3f0a94f-48de-4b77-a08e-68114460857e"</span><span>,</span> <span style="color:rgb(221,17,68)">"444939cd-ae63-4ce1-96a4-de74b77e3737"</span><span>]</span> </div>
<div> <span>}</span></div><div> <span>,</span></div><div> <span style="color:navy">"message"</span><span>:</span> <span>{</span></div>
<div> <span style="color:navy">"alert"</span><span>:</span><span style="color:rgb(221,17,68)">"HELLO!"</span><span>,</span></div>
<div> <span style="color:navy">"sound"</span><span>:</span><span style="color:rgb(221,17,68)">"default"</span><span>,</span></div>
<div> <span style="color:navy">"badge"</span><span>:</span><span style="color:rgb(0,153,153)">7</span><span>,</span></div><div>
<span style="color:navy">"someKey"</span><span>:</span><span style="color:rgb(221,17,68)">"some value"</span><span>,</span></div><div>
<span style="color:navy">"anotherCustomKey"</span><span>:</span><span style="color:rgb(221,17,68)">"some other value"</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>Regarding <span style="font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:12.800000190734863px;white-space:pre-wrap;color:navy">"simple-push"</span><span style="font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:12.800000190734863px;white-space:pre-wrap">:</span><span style="font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:12.800000190734863px;white-space:pre-wrap"> </span><span style="font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:12.800000190734863px;white-space:pre-wrap;color:rgb(221,17,68)">"version=123"</span>, I'd vote this not to be part of the 'configuration' section, it's the actual message/payload for SP</div>
</div></div></div></blockquote><div>Right ! here the updated gist <a href="https://gist.github.com/sebastienblanc/8897596">https://gist.github.com/sebastienblanc/8897596</a> </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 dir="ltr"><div class="gmail_extra"><div class="gmail_quote">
<div> </div><div><br></div><div>-M</div><div><br></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 dir="ltr">
<div><pre style="line-height:12.800000190734863px;width:744px;font-size:12px;margin-bottom:0px;font-family:Consolas,'Liberation Mono',Courier,monospace;margin-top:0px;padding:0px"><div>
<span><span style="color:rgb(34,34,34);font-family:arial;font-size:small;line-height:normal;white-space:normal"><br></span></span></div><div><span><span style="color:rgb(34,34,34);font-family:arial;font-size:small;line-height:normal;white-space:normal">Sebi</span></span></div>
<div><span><br></span></div><div><span>[1]</span><a href="http://aerogear.org/docs/specs/aerogear-push-messages/" target="_blank">http://aerogear.org/docs/specs/aerogear-push-messages/</a></div>
</pre></div></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><span class=""><font color="#888888"><br></font></span></blockquote></div><span class=""><font color="#888888"><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>
</font></span></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></div></div>
_______________________________________________<br>aerogear-dev mailing list<br><a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>https://lists.jboss.org/mailman/listinfo/aerogear-dev</blockquote></div><br></div></body></html>