[aerogear-dev] better windows push notification support
Lukáš Fryč
lukas.fryc at gmail.com
Wed Jan 7 12:26:35 EST 2015
Hi Erik,
I'd prefer a structured format (under "windows" property)
it makes more readable code than a flat structure and avoids collisions.
Do we have other platform-specific switches we'd need to align with?
Cheers,
~ Lukas
On Wed, Jan 7, 2015 at 5:33 PM, Erik Jan de Wit <edewit at redhat.com> wrote:
> Hi,
>
> Right now push is supported for windows, but only so called `Toast
> Notifications`. I want to add the other message types to the as described
> in this gist [1]. Now in the new message format this would mean to add a
> couple of fields that are windows specific they should be ignored by the
> other push services. So I'm wondering if we should do that, or if we should
> put these fields into a sub category called windows for example:
>
> {
> "message":{
> "alert":"HELLO!",
> "user-data":{
> "key":"value"
> },
> "windows": {
> "template" : "cycle",
> "title" : "Contoso",
> "count" : 10,
> "smallBackgroundImage" : "/Assets/Tiles/smallBackgroundImage.jpg",
> "cycleImages" :
> [
> "/Assets/Tiles/cycleImage1.jpg",
> "/Assets/Tiles/cycleImage2.jpg",
> "/Assets/Tiles/cycleImage3.jpg",
> "/Assets/Tiles/cycleImage4.jpg",
> "/Assets/Tiles/cycleImage5.jpg",
> "/Assets/Tiles/cycleImage6.jpg",
> "/Assets/Tiles/cycleImage7.jpg",
> "/Assets/Tiles/cycleImage8.jpg",
> "/Assets/Tiles/cycleImage9.jpg"
> ]
> }
> }
> }
>
>
>
> What do you think?
>
> [1] https://gist.github.com/edewit/305d76c31960aa6254a9
>
> _______________________________________________
> 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/20150107/3092a9ea/attachment-0001.html
More information about the aerogear-dev
mailing list