<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 10, 2013 at 2:25 PM, Sebastien Blanc <span dir="ltr"><<a href="mailto:scm.blanc@gmail.com" target="_blank">scm.blanc@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">So just to be sure : <div>what you propose is to have an extra level agnostic from the variant ? PushApp -> Variant -> Categrory ? </div>
</div></blockquote><div><br></div><div style>yep</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>I'm fine with that, but would category stays "optionnal" ? If not specifying it would it still work ? </div>
</div></div></blockquote><div><br></div><div style>yes, sure optional.</div><div style><br></div><div style>So, if some clients are NOT setting the "foo" category, they will not get the "foo specific" message. Makes sense ?</div>
<div style><br></div><div style>If "category" is left out, on sending, the "category" is not effected at all</div><div style><br></div><div style><br></div><div style><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div>
<div>Seb</div><div><br><div><br></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Wed, Jul 10, 2013 at 2:15 PM, Matthias Wessendorf <span dir="ltr"><<a href="mailto:matzew@apache.org" target="_blank">matzew@apache.org</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div>Hi,</div><div><br></div><div>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]).</div>
<div><br></div><div>This would be useful on Android/iOS as well, for some sort of tagging/grouping (similar to the use-case in SimplePush).</div><div><br></div><div>Clients could specify a category, like:</div><div>...</div>
<div>[registration registerWithClientInfo:^(id<AGClientDeviceInformation> clientInfo) {</div><div> </div><div> clientInfo.deviceToken = deviceToken;</div><div> ...</div><div> clientInfo.category = @"something";</div>
<div> </div><div> } success:^() {</div><div> ...</div><div> } failure:^(NSError *error) {</div><div> ..</div><div> }</div><div>];</div><div><br></div><div><br></div><div>For sending push notification message to all clients, with the matching category, the "Selective Sender" API could have this field on its payload:</div>
<div><br></div><div>"category" : "something"</div><div><br></div><div>This would basically add the "category" behavior, used for SP to Android/iOS</div><div><br></div><div>Any thoughts ? </div>
<div><br></div><div>-Matthias</div><div><br></div><div>[1] <a href="https://github.com/matzew/aerogear.org/blob/09609f9e1a8ae94193593c86727e54e208033674/docs/specs/aerogear-push-rest/Sender.asciidoc#selective-send-http-post" target="_blank">https://github.com/matzew/aerogear.org/blob/09609f9e1a8ae94193593c86727e54e208033674/docs/specs/aerogear-push-rest/Sender.asciidoc#selective-send-http-post</a></div>
<span><font color="#888888">
<div><br></div><div><br></div>-- <br>Matthias Wessendorf <br><br>blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>
twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a>
</font></span></div>
<br></div></div>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br></blockquote></div><br></div>
<br>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Matthias Wessendorf <br>
<br>blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>
twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a>
</div></div>