[aerogear-dev] [UnifiedPush Server: Sender API] Adding category query

Matthias Wessendorf matzew at apache.org
Wed Jul 10 08:35:20 EDT 2013


On Wed, Jul 10, 2013 at 2:25 PM, Sebastien Blanc <scm.blanc at gmail.com>wrote:

> So just to be sure :
> what you propose is to have an extra level agnostic from the variant ?
> PushApp -> Variant -> Categrory ?
>

yep


> I'm fine with that, but would category stays "optionnal" ? If not
> specifying it would it still work ?
>

yes, sure optional.

So, if some clients are NOT setting the "foo" category, they will not get
the "foo specific" message. Makes sense ?

If "category" is left out, on sending, the "category" is not effected at all





> Seb
>
>
>
>
> On Wed, Jul 10, 2013 at 2:15 PM, Matthias Wessendorf <matzew at apache.org>wrote:
>
>> 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
>>
>> _______________________________________________
>> aerogear-dev mailing list
>> aerogear-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>>
>
>
> _______________________________________________
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20130710/e264224a/attachment-0001.html 


More information about the aerogear-dev mailing list