[aerogear-dev] [UnifiedPush Server: Sender API] Adding category query
Matthias Wessendorf
matzew at apache.org
Wed Jul 10 08:15:32 EDT 2013
Hi,
for the SimplePush we tag the different channels with a category, to give
the "channelID" a "meaningful" name. That is also required when sending
messages to different SP clients/channels (see [1]).
This would be useful on Android/iOS as well, for some sort of
tagging/grouping (similar to the use-case in SimplePush).
Clients could specify a category, like:
...
[registration registerWithClientInfo:^(id<AGClientDeviceInformation>
clientInfo) {
clientInfo.deviceToken = deviceToken;
...
clientInfo.category = @"something";
} success:^() {
...
} failure:^(NSError *error) {
..
}
];
For sending push notification message to all clients, with the matching
category, the "Selective Sender" API could have this field on its payload:
"category" : "something"
This would basically add the "category" behavior, used for SP to Android/iOS
Any thoughts ?
-Matthias
[1]
https://github.com/matzew/aerogear.org/blob/09609f9e1a8ae94193593c86727e54e208033674/docs/specs/aerogear-push-rest/Sender.asciidoc#selective-send-http-post
--
Matthias Wessendorf
blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20130710/8e0d3667/attachment.html
More information about the aerogear-dev
mailing list