<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">But leaky abstractions are the best
kind of abstractions!<br>
+1<br>
<br>
On 07/03/2013 08:06 AM, Matthias Wessendorf wrote:<br>
</div>
<blockquote
cite="mid:CAAg5f2Tk2JCm_ZM5QR7oKSMsF1CK0mXMCe2gLZHAcc=3bY7Pzw@mail.gmail.com"
type="cite">
<div dir="ltr">Hi,
<div><br>
</div>
<div style="">Right now, the "selective send" has (besides
"query" components), one "message" object, that contains the
entire payload (see [1]).</div>
<div style="">
<br>
</div>
<div style="">That message/payload object does include the
metadata for the SimplePush clients:</div>
<div style=""><br>
</div>
<pre style="font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:13px;margin-top:15px;margin-bottom:15px;background-color:rgb(248,248,248);border:1px solid rgb(221,221,221);line-height:19px;overflow:auto;padding:6px 10px;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;color:rgb(51,51,51)"><code style="font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;margin:0px;padding:0px;border:none;background-color:transparent;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px">"message": {
"key":"value",
"key2":"other value",
"alert":"HELLO!",
"simple-push":
{ "SomeCategory":"version=123", "anotherCategory":"version=456"}
}</code></pre>
<div style=""><br>
</div>
<div style="">I'd like to move the "simple-push" one level up,
like:</div>
<div style="">
<pre style="font-size:13px;font-family:Consolas,'Liberation Mono',Courier,monospace;margin-top:15px;margin-bottom:15px;background-color:rgb(248,248,248);border:1px solid rgb(221,221,221);line-height:19px;overflow:auto;padding:6px 10px;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;color:rgb(51,51,51)"><code style="font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;margin:0px;padding:0px;border:none;background-color:transparent;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px">
"message": {
"key":"value",
"key2":"other value",
"alert":"HELLO!"},
"simple-push":{
"SomeCategory":"version=123",
........}
}</code></pre>
<div><br>
</div>
</div>
<div style=""><br>
</div>
<div style="">That way the "simple-push" data is not "pushed" to
Android/iOS (that does not make sense anyways :-)) It also
makes writing "pure" simple-push messages easier and also
eases up processing on the server.<br>
</div>
<div style=""><br>
</div>
<div style="">-Matthias</div>
<div style=""><br>
</div>
<div style=""><br>
</div>
<div style="">[1] <a moz-do-not-send="true"
href="https://github.com/aerogear/aerogear.org/blob/master/docs/specs/aerogear-push-messages/index.markdown#selective-send">https://github.com/aerogear/aerogear.org/blob/master/docs/specs/aerogear-push-messages/index.markdown#selective-send</a></div>
<div>
<div><br>
</div>
-- <br>
Matthias Wessendorf <br>
<br>
blog: <a moz-do-not-send="true"
href="http://matthiaswessendorf.wordpress.com/"
target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>
sessions: <a moz-do-not-send="true"
href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>
twitter: <a moz-do-not-send="true"
href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
aerogear-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/aerogear-dev">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a></pre>
</blockquote>
<br>
</body>
</html>