<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 7, 2015 at 1:04 AM, Erik Jan de Wit <span dir="ltr">&lt;<a href="mailto:edewit@redhat.com" target="_blank">edewit@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Oops, didn&#39;t see it was about simple push, in that case it&#39;s still possible tough, only have to query your backend with the &#39;number&#39; you supplied your client with. To elaborate let&#39;s say with category &#39;a&#39; I send a message with number 26, then when the client queries the backend, after receiving the notification, with number 26, the backend can inform the client that it was category &#39;a&#39; that was used to &quot;triggered&quot; it.<div><br></div><div>Does that make sense?</div></div></blockquote><div><br></div><div>yes, totally</div><div><br></div><div>Just shows the trade offs of SimplePush :-) </div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Mon, Jul 6, 2015 at 11:10 PM, Matthias Wessendorf <span dir="ltr">&lt;<a href="mailto:matzew@apache.org" target="_blank">matzew@apache.org</a>&gt;</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"><span><br><br>On Monday, July 6, 2015, Erik Jan de Wit &lt;<a href="mailto:edewit@redhat.com" target="_blank">edewit@redhat.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 6, 2015 at 4:59 PM, mo <span dir="ltr">&lt;<a>michi.oshima@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">specifies only one category, &quot;mail&quot;.  Is it possible to specify multiple<br>
categories?  For example, categories `[&quot;A&quot;, &quot;B&quot;, &quot;C&quot;]`.  If so, when I<br></blockquote><div><br></div><div> Yes that is possible</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
receive a message, will I be able to tell to which category the message<br>
belongs?  If the sender were to tag the message as category &quot;A&quot;, would the<br>
client be able to inspect the message and extract &quot;A&quot;?<br></blockquote><div><br></div><div>Not out of the box, but you could add the category manually when sending and then the client can read it.</div><div><br></div><div>See here: <a href="https://aerogear.org/docs/unifiedpush/push-message-format/" target="_blank">https://aerogear.org/docs/unifiedpush/push-message-format/</a> or here <a href="https://aerogear.org/docs/unifiedpush/push-message-format-dev/" target="_blank">https://aerogear.org/docs/unifiedpush/push-message-format-dev/</a> depending on your version you can add user defined keys to the message (<span style="color:inherit;font-family:Menlo,Monaco,Consolas,&#39;Courier New&#39;,monospace;font-size:inherit;white-space:pre-wrap;line-height:1.42857143;background-color:transparent">someKey, </span><span style="color:inherit;font-family:Menlo,Monaco,Consolas,&#39;Courier New&#39;,monospace;font-size:inherit;white-space:pre-wrap;line-height:1.42857143;background-color:transparent">anotherCustomKey)</span></div><div></div></div></div></div></blockquote><div><br></div></span><div>That is a good idea, Erik! I like it :-)</div><div><br></div><div>I think the problem here is the usage of SimplePush: the push server only send a version/timestamp :-/</div><div><br></div>-M<div><div><span></span><br><div><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 class="gmail_extra"><div class="gmail_quote"><div></div><div><br></div><div>If you put your category there as well the client will get it when it receives the message. </div><div><br></div></div>-- <br><div><div dir="ltr">Cheers,<div>       Erik Jan</div></div></div>
</div></div>
</blockquote><br><br></div></div><span><font color="#888888">-- <br>Sent from Gmail Mobile<br>
</font></span><br></div></div><span class="">_______________________________________________<br>
Aerogear-users mailing list<br>
<a href="mailto:Aerogear-users@lists.jboss.org" target="_blank">Aerogear-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-users" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-users</a><br>
<br></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr">Cheers,<div>       Erik Jan</div></div></div>
</font></span></div>
<br>_______________________________________________<br>
Aerogear-users mailing list<br>
<a href="mailto:Aerogear-users@lists.jboss.org">Aerogear-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-users" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">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></div>