<div dir="ltr"><div><div>I&#39;m tempted to say that there should be a &quot;WebPush&quot; variant instead which could be chrome/ff/safari, but i think chrome and safari are to closely related to Android/iOS atm that it wouldn&#39;t make sense.<br><br></div>Somewhat related to this is the JS SDK for the ups and how it works for push on the web.  It was initially created to just handle registering SimplePush clients, since there was no browsers doing push.  Then Safari introduced push, then chrome and FF.   with regards to the UPS, these are 3 different variants,  so to create 1 app that handles all three you would need to make sure to register 3 &quot;clients&quot; in the js sdk.  I don&#39;t know if there is anyway we can help the user out with this. Safari is different enough that it would be easy for the user, but there is no real difference between the registration code in FF and chrome.(perhaps these 2 should be the &quot;WebPush&quot; variant) so a user agent parse would probably need to happen.  i&#39;m not really a big fan of including that in the library,  but maybe we should have an example that shows push for FF and chrome in the same example.<br><br><br></div><div><div><div><div><div><div><div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jul 24, 2016 at 9:05 PM, Idel Pivnitskiy <span dir="ltr">&lt;<a href="mailto:idel.pivnitskiy@gmail.com" target="_blank">idel.pivnitskiy@gmail.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"><div>Hi all,</div><div><br></div><div>I&#39;ve added a Firefox Variant to support Push API in Mozilla Firefox for UPS [1]. It works well with my previous example for Chrome [2]. I also created a new PR to adapt comments in this example and notice that Firefox also supported [3].</div><div><br></div><div>Current implementation of Firefox Variant does not support PushMessageData [4]. Looks like it will require significant changes of UPS. I will initiate a separate thread for this discussion.</div><div><br></div><div>[1] <a href="https://github.com/aerogear/aerogear-unifiedpush-server/pull/744" target="_blank">https://github.com/aerogear/aerogear-unifiedpush-server/pull/744</a></div><div>[2] <a href="https://github.com/aerogear/aerogear-js-cookbook/pull/13" target="_blank">https://github.com/aerogear/aerogear-js-cookbook/pull/13</a></div><div>[3] <a href="https://github.com/aerogear/aerogear-js-cookbook/pull/14" target="_blank">https://github.com/aerogear/aerogear-js-cookbook/pull/14</a></div><div>[4] <a href="https://developer.mozilla.org/en-US/docs/Web/API/PushMessageData" target="_blank">https://developer.mozilla.org/en-US/docs/Web/API/PushMessageData</a></div><br clear="all"><div><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Best regards,<div>Idel Pivnitskiy</div><div>--<br></div><div>Twitter: <a href="https://twitter.com/idelpivnitskiy" target="_blank">@idelpivnitskiy</a></div><div>GitHub: <a href="https://github.com/idelpivnitskiy" target="_blank">@idelpivnitskiy</a></div></div></div></div></div></div></div></div></div>
</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" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br></blockquote></div><br></div></div></div></div></div></div></div></div></div></div></div>