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

Matthias Wessendorf matzew at apache.org
Mon Feb 10 10:46:05 EST 2014


On Monday, February 10, 2014, Sebastien Blanc <scm.blanc at gmail.com> wrote:

>
>
>
> On Mon, Feb 10, 2014 at 2:23 PM, Lucas Holmquist <lholmqui at redhat.com<javascript:_e(%7B%7D,'cvml','lholmqui at redhat.com');>
> > wrote:
>
>> here is the current format for comparison
>>
>> https://gist.github.com/lholmquist/8915817
>>
>> +1 to being more structured.
>>
>> one thing though,  in the current format, simplePush is not part of the
>> message, but it's own thing
>>
> Yeah, that's why I put it in the config section in my first version but
> Matzew suggested it was more part of the message payload
>


Nope to config; should stay its own, does not (IMO) make sense to include
in tve message for richer platforms like Android/iOS


>
> On Feb 9, 2014, at 9:06 AM, Sebastien Blanc <scm.blanc at gmail.com> wrote:
>
>
>
>
> 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.
>
> Re
>
>
>

-- 
Sent from Gmail Mobile
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20140210/098a09ef/attachment-0001.html 


More information about the aerogear-dev mailing list