<div dir="ltr"><div>Hi Lucas,</div><div><br></div><div>Following might do what I want (sending a "door bell" message in one shot to all variants)? Send a unified message like the following one:</div><div><br></div>
<div><ul><li><span style="color:rgb(136,0,0);font-family:monospace,serif;font-size:11px;line-height:15px;white-space:pre;background-color:rgb(240,240,240)">'{ </span><span style="color:rgb(136,0,0);font-family:monospace,serif;font-size:11px;line-height:15px;white-space:pre;background-color:rgb(240,240,240)">"message": { "version":"123" }, "simple-push": "version=123" }'</span><br>
</li></ul></div><div><br></div><div>One slight deviation is that mobile variants like iOS and Android will get the message regardless of whether the the version number is "old" or not. Is this correct?</div><div>
<br></div><div>So I revisited the <a href="https://wiki.mozilla.org/WebAPI/SimplePush">SimplePush spec</a>, and I noticed it describes support for subscription to multiple channels. </div><div><br></div>Aerogear doesn't allow multiple channels per installation, correct? I dug up an old post from Matthias:<div>
<br></div><div><ul><li><a href="http://aerogear-dev.1069024.n5.nabble.com/aerogear-dev-SimplePush-Registration-of-quot-Mobile-Variant-instance-quot-w-Unified-Push-Server-tt2805.html#none">http://aerogear-dev.1069024.n5.nabble.com/aerogear-dev-SimplePush-Registration-of-quot-Mobile-Variant-instance-quot-w-Unified-Push-Server-tt2805.html#none</a><br>
</li></ul></div><div><br></div><div>If an installation can subscribe to multiple channels, then it would allow me to get what I originally asked about:</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<div>Me: '<span style="font-family:arial,sans-serif;font-size:13px">My client application (javascript on browser) holds multiple types of data. It would be nice if I can send a notification saying "there's an update for this data type", rather than just "there's an update". Or, in general it'd be nice if I can send more information than just a monotonically increasing number. '</span></div>
</blockquote><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">What do you think?</span></div><div><br></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Wed, Apr 2, 2014 at 11:44 AM, Lucas Holmquist <span dir="ltr"><<a href="mailto:lholmqui@redhat.com" target="_blank">lholmqui@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word"><div class=""><div>On Apr 2, 2014, at 11:38 AM, Michi Oshima <<a href="mailto:michi.oshima@gmail.com" target="_blank">michi.oshima@gmail.com</a>> wrote:</div></div><div><div class="">
<br><blockquote type="cite"><div dir="ltr">Thanks, Lucas. I read the spec yesterday and ended up looking at disturbing auctions for 30 minutes. I'll read it again.<div><br></div><div>Another question, is there a way to send a "door bell" message *in one shot* to all iOS, Android, and SimplePush variants?</div>
</div></blockquote><div><br></div></div><div>well, iOS and Android notifications aren't really doorbells, but you can send a "message" to all clients that are registered in your Push Server.</div><div><br></div>
<div>we have a Java client </div><div><a href="http://aerogear.org/docs/guides/GetStartedwithJavaSender/" target="_blank">http://aerogear.org/docs/guides/GetStartedwithJavaSender/</a></div><div><br></div><div>and a node.js client for this</div>
<div><a href="https://www.npmjs.org/package/aerogear-sender-client" target="_blank">https://www.npmjs.org/package/aerogear-sender-client</a></div><div><div class="h5"><div><br></div><div><br></div><br><blockquote type="cite">
<div dir="ltr">
<div><br></div><div>(m:)</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Apr 2, 2014 at 11:04 AM, Lucas Holmquist <span dir="ltr"><<a href="mailto:lholmqui@redhat.com" target="_blank">lholmqui@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">SimplePush works only as a "door bell" to tell your app, hey, you should go look on your server.<div>
<br></div><div>this is the spec <a href="https://wiki.mozilla.org/WebAPI/SimplePush" target="_blank">https://wiki.mozilla.org/WebAPI/SimplePush</a></div><div><br></div><div><br></div><div><div><div><div><div>On Apr 2, 2014, at 11:02 AM, Michi Oshima <<a href="mailto:michi.oshima@gmail.com" target="_blank">michi.oshima@gmail.com</a>> wrote:</div>
<br></div></div><blockquote type="cite"><div><div><div dir="ltr">Hi,<div><br></div><div>Yesterday I managed to send my first message to a browser. Thanks for all your help.</div><div><br></div><div>I've tried sending a few different types of messages, and it so far appears to me the only thing I can send to a simple push client is a version number. Can a simple push client receive anything else other than version numbers? If so, what does the sender need to do, and what does the client need to do? (If there is a good example somewhere online I can work from that also.)</div>
<div><br></div><div>My client application (javascript on browser) holds multiple types of data. It would be nice if I can send a notification saying "there's an update for this data type", rather than just "there's an update". Or, in general it'd be nice if I can send more information than just a monotonically increasing number. </div>
<div><br></div><div>Here's my setup:</div><div><br></div><div><ul><li>AeroGear Push Server 0.10.0 hosted on OpenShift.<br></li><li>Sender is a JBoss app using org.jboss.aerogear.unifiedpush.JavaSender (unifiedpush-java-client-0.5.0.jar).<br>
</li><li>Client is a web browser using aerogear.js 1.4.0.<br></li></ul></div><div><br></div><div>I read <a href="http://aerogear.org/docs/specs/aerogear-push-messages/" target="_blank">this documentation</a>, but my wishful thinking refused to interpret it as saying: SimplePush variants use the "extra simple-push object" only.</div>
<div><br></div><div>Thank you,</div><div><br></div><div>Michi Oshima</div><div><br></div></div></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></blockquote>
</div><br></div></div><br>_______________________________________________<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>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></blockquote>
</div></div></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></div>