<div dir="ltr">Hey,<div>sorry for the late response</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 1, 2015 at 10:06 PM, mo <span dir="ltr">&lt;<a href="mailto:michi.oshima@gmail.com" target="_blank">michi.oshima@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">Hi Sebastien,<br>
<br>
If the contents of the localStorage were deleted for one reason or another,<br>
then I believe the browser would have to register anew with SPS and UPS next<br>
time.  In that case the original registration would be a &quot;bogus<br>
installation&quot; on USP as Matthias puts it, I&#39;m thinking.  Am I correct?</blockquote><div>Yes </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">  I<br>
don&#39;t know whether there&#39;s going to be any stale data on the side of SPS.<br>
Is there?<br></blockquote><div>I think SPS has some kind of &quot;reaper&quot; service that does a clean up but to be honest I don&#39;t know the details of it. Daniel (who is currently on parental leave) could give you more details on that/ </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Also, how should I detect whether registration with SPS is previously done?<br>
Would the `mailEndpoint` be falsey in that case?  </blockquote><div>Yes </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I&#39;m talking about  this<br>
sample code<br>
&lt;<a href="https://github.com/aerogear/aerogear-js-cookbook/blob/master/simplepush-unifiedpush-example/js/unifiedpush.js#L29" rel="noreferrer" target="_blank">https://github.com/aerogear/aerogear-js-cookbook/blob/master/simplepush-unifiedpush-example/js/unifiedpush.js#L29</a>&gt;<br>
.<br>
<br>
Here&#39;s another, related question.  When we reuse registrations in the way<br>
you describe, is there any reason ever to call<br>
`navigator.push.unregister(...)` or<br>
`unifiedPushClient.unregisterWithPushServer(...)`???  I have not seen a<br>
sample code where `navigator.push.unregister(...)` was used.  I believe I&#39;ve<br>
seen `unregisterWithPushServer(...)` somewhere.  Note, I don&#39;t exactly know<br>
what these unregister functions do.<br></blockquote><div>This could be used when an user don&#39;t want to receive notification anymore, imagine a config section in the webapp where the user can turn off the notification for instance.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Thank you.<br>
<br>
<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-tp86p95.html" rel="noreferrer" target="_blank">http://aerogear-users.1116366.n5.nabble.com/Registering-and-unregistering-from-Simple-Push-and-Unified-Push-tp86p95.html</a><br>
<div class="HOEnZb"><div class="h5">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>
</div></div></blockquote></div><br></div></div>