based on this thread, here is a PR to be reviewed:

https://github.com/aerogear/aerogear-unifiedpush-server/pull/288


On Thu, Jul 10, 2014 at 3:54 PM, Christos Vasilakis <cvasilak@gmail.com> wrote:

On Jul 10, 2014, at 3:28 PM, Matthias Wessendorf <matzew@apache.org> wrote:

Hi,

as Corinne mentioned on a different thread, w/ iOS8 Apple introduces new UIUserNotificationActions, that can be grouped into a category (UIUserNotificationCategory).

For remote notifications (aka push) those actions can be trigger by sending this JSON payload to APNs:

aps {
  alert: {...},
  category: "SOMETHING"
}


I'd like to add that feature to the UnifiedPush Server and the Java/Node Senders.

Our own message format (see [2]) has already a categoies element, but that is used for filtering/tagging; That element is NOT related to the actual payload of the message (which the apple action/category is all about).

Now, I'd like to introduce an "action-category" element inside of the "message" object, like: 

message: {
  .......
  "alert":"HELLO!",
  .......
  "action-category":"SOMETHING"
}

This value will be send down to the actual device (by Apple) as part of the message. The name is perhaps a bit Apple-oriented, but I think it may fit other platforms as well...

Looks like Summers/Passos want to do similar for Android (see [3]).

What do you think ? 

sounds good +1


_______________________________________________
aerogear-dev mailing list
aerogear-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-dev


_______________________________________________
aerogear-dev mailing list
aerogear-dev@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