[aerogear-dev] Selective Send: Payload message object

Kris Borchers kris at redhat.com
Wed Jul 3 10:48:07 EDT 2013


+1

On Jul 3, 2013, at 8:09 AM, Summers Pittman <supittma at redhat.com> wrote:

> But leaky abstractions are the best kind of abstractions!
> +1
> 
> On 07/03/2013 08:06 AM, Matthias Wessendorf wrote:
>> Hi,
>> 
>> Right now, the "selective send" has (besides "query" components), one "message" object, that contains the entire payload (see [1]).
>> 
>> That message/payload object does include the metadata for the SimplePush clients:
>> 
>> "message": {
>>    "key":"value",
>>    "key2":"other value",
>>    "alert":"HELLO!",
>>     "simple-push":
>>       { "SomeCategory":"version=123", "anotherCategory":"version=456"} 
>> }
>> 
>> I'd like to move the "simple-push" one level up, like:
>> 
>> 
>> "message": {
>>    "key":"value",
>>    "key2":"other value",
>>    "alert":"HELLO!"},
>> "simple-push":{
>>    "SomeCategory":"version=123",
>>    ........}
>> }
>> 
>> 
>> 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.
>> 
>> -Matthias
>> 
>> 
>> [1] https://github.com/aerogear/aerogear.org/blob/master/docs/specs/aerogear-push-messages/index.markdown#selective-send
>> 
>> -- 
>> Matthias Wessendorf 
>> 
>> blog: http://matthiaswessendorf.wordpress.com/
>> sessions: http://www.slideshare.net/mwessendorf
>> twitter: http://twitter.com/mwessendorf
>> 
>> 
>> _______________________________________________
>> aerogear-dev mailing list
>> aerogear-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/aerogear-dev
> 
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20130703/5a421d93/attachment.html 


More information about the aerogear-dev mailing list