<div dir="ltr"><div>Thank you, Lucas.  It worked.  The key was &#39;ag-push-store&#39;.  I deleted it, and I&#39;m good to go.</div><div><br></div><div>Michi Oshima</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Tue, Apr 1, 2014 at 3:33 PM, Lucas Holmquist <span dir="ltr">&lt;<a href="mailto:lholmqui@redhat.com" target="_blank">lholmqui@redhat.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 style="word-wrap:break-word">we store some things in local-storage,  so you would need to delete that record.<div><br></div><div>if you are using chrome, you can use the dev tools and go to the resources tab and delete the record that is aerogear-push(?),  i think thats the name,  i don&#39;t have it in front of me</div>
<div><br></div><div><br><div><div><div class="h5"><div>On Apr 1, 2014, at 2:50 PM, Michi Oshima &lt;<a href="mailto:michi.oshima@gmail.com" target="_blank">michi.oshima@gmail.com</a>&gt; wrote:</div><br></div></div><blockquote type="cite">
<div><div class="h5"><div dir="ltr">Hi,<div><br></div><div>I&#39;m trying to adapt the sample code under <a href="https://github.com/aerogear/aerogear-simplepush-unifiedpush-quickstart" target="_blank">aerogear-simplepush-unifiedpush-quickstart</a> for my application.  I&#39;m having a problem inside <a href="https://github.com/aerogear/aerogear-simplepush-unifiedpush-quickstart/blob/master/js/unifiedpush.js#L15" target="_blank">spConnect() function</a>.</div>

<div><br></div><div>When I first ran my code PushManager.register() call was successful, and it returned a pushEndpoint.  But I had mistyped the code somewhere below and I never got to call <a href="https://github.com/aerogear/aerogear-simplepush-unifiedpush-quickstart/blob/master/js/unifiedpush.js#L50" target="_blank">UPClient.registerWithPushServer(...)</a>.</div>

<div><br></div><div>Every subsequent run of the spConnect() function skips the line to call UPClient.registerWithPushServer(...), because PushManager.register() call doesn&#39;t return a pushEndpoint.  (That&#39;s what you check <a href="https://github.com/aerogear/aerogear-simplepush-unifiedpush-quickstart/blob/master/js/unifiedpush.js#L29" target="_blank">in this line</a>, correct?)</div>

<div><br></div><div>I&#39;m guessing that I am somehow successfully registered with the simple push server, but not with the unified push server.  I&#39;m very new to AeroGear, so I&#39;m not at all sure.</div><div><br></div>

<div><ol><li>How should I best recover from this?  <br></li><li>If I&#39;m correct about what&#39;s going on, how should I rearrange the code so that I can properly handle the situation where I&#39;m registered with the simple push server but not with the unified push server?<br>

</li></ol></div><div>Thank you,</div><div><br></div><div>Michi Oshima</div></div></div></div><div class="">
_______________________________________________<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></div>
</blockquote></div><br></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" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br></blockquote></div><br></div>