<div dir="ltr">Hi,<div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 30, 2015 at 7:30 PM, mo <span dir="ltr"><<a href="mailto:michi.oshima@gmail.com" target="_blank">michi.oshima@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
We use OpenShift AeroGear Push Server Cartridge<br>
<<a href="https://github.com/aerogear/openshift-origin-cartridge-aerogear-push" rel="noreferrer" target="_blank">https://github.com/aerogear/openshift-origin-cartridge-aerogear-push</a>> .<br>
<br>
I've decided to register with simple-push and unified-push every time the<br>
user logs into our application. Also to unregister from both unified-push<br>
and simple-push when they log out or browser closes. Is this a good idea or<br>
bad idea?<br></blockquote><div>Any reasons you are doing it this way ? AeroGear's SPS JS implementation will keep a mapping SPS <-> UPS in your localStorage, so when you register again it will use this instead of creating a new installation.</div><div>By registering/unregistering each time you will "pollute" the installation table in UPS.</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Also, I've always wondered about the following comment in a sample code:<br>
<br>
"if it is the first registration, need to register the 'pushEndpoint' with<br>
the UnifiedPush server."<br>
<<a href="https://github.com/aerogear/aerogear-js-cookbook/blob/master/simplepush-unifiedpush-example/js/unifiedpush.js#L27-L28" rel="noreferrer" target="_blank">https://github.com/aerogear/aerogear-js-cookbook/blob/master/simplepush-unifiedpush-example/js/unifiedpush.js#L27-L28</a>><br></blockquote><div>Once a SPS endpoint has been received it needs to register with the UPS except when it has already be done (see previous comment) </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Can somebody explain what is meant by the comment? For example, what would<br>
count as a registration that's not the first?<br>
<br>
Thank you.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://aerogear-users.1116366.n5.nabble.com/Registering-and-unregistering-from-Simple-Push-and-Unified-Push-tp86.html" rel="noreferrer" target="_blank">http://aerogear-users.1116366.n5.nabble.com/Registering-and-unregistering-from-Simple-Push-and-Unified-Push-tp86.html</a><br>
Sent from the aerogear-users mailing list archive at Nabble.com.<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>
</blockquote></div><br></div></div>