<div dir="ltr">Oops, didn't see it was about simple push, in that case it's still possible tough, only have to query your backend with the 'number' you supplied your client with. To elaborate let's say with category 'a' 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 'a' that was used to "triggered" it.<div><br></div><div>Does that make sense?</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 6, 2015 at 11:10 PM, Matthias Wessendorf <span dir="ltr"><<a href="mailto:matzew@apache.org" target="_blank">matzew@apache.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br><br>On Monday, July 6, 2015, Erik Jan de Wit <<a href="mailto:edewit@redhat.com" target="_blank">edewit@redhat.com</a>> 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"><<a>michi.oshima@gmail.com</a>></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, "mail". Is it possible to specify multiple<br>
categories? For example, categories `["A", "B", "C"]`. 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 "A", would the<br>
client be able to inspect the message and extract "A"?<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,'Courier New',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,'Courier New',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 class="HOEnZb"><div class="h5"><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 class="HOEnZb"><font color="#888888">-- <br>Sent from Gmail Mobile<br>
</font></span><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"><div dir="ltr">Cheers,<div> Erik Jan</div></div></div>
</div>