[aerogear-dev] [UPS] Proposal to change the Push Message Format

Sebastien Blanc scm.blanc at gmail.com
Sun Feb 9 09:06:30 EST 2014


On Sun, Feb 9, 2014 at 2:14 PM, Matthias Wessendorf <matzew at apache.org>wrote:

>
>
>
> On Sun, Feb 9, 2014 at 12:06 PM, Sebastien Blanc <scm.blanc at gmail.com>wrote:
>
>> Hi,
>> 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 :
>>
>>
>> {
>>   "config" : {
>>
>>      "ttl" : 3600,
>>      "content-available" : true,
>>
>>      "simple-push": "version=123"
>>
>>   },
>>   "criteria" : {
>>
>>       "alias" : ["user at account.com", "someone at aerogear.org", ....],
>>
>>       "categories" : ["someCategory", "otherCategory"],
>>
>>       "deviceType" : ["iPad", "AndroidTablet"],
>>
>>       "variants" : ["c3f0a94f-48de-4b77-a08e-68114460857e", "444939cd-ae63-4ce1-96a4-de74b77e3737"]
>>
>>   }
>>   ,
>>   "message": {
>>     "alert":"HELLO!",
>>     "sound":"default",
>>     "badge":7,
>>
>>     "someKey":"some value",
>>
>>     "anotherCustomKey":"some other value"
>>
>>   },
>>   }
>>
>> wdyt ?
>>
>>
> interesting idea - it looks better structured.
>
> Regarding "simple-push": "version=123", I'd vote this not to be part of
> the 'configuration' section, it's the actual message/payload for SP
>
Right ! here the updated gist https://gist.github.com/sebastienblanc/8897596


>
>
> -M
>
>
>> Sebi
>>
>>
>> [1]http://aerogear.org/docs/specs/aerogear-push-messages/
>>
>>
>> _______________________________________________
>> aerogear-dev mailing list
>> aerogear-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>>
>
>
>
> --
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20140209/d9983786/attachment.html 


More information about the aerogear-dev mailing list