[aerogear-dev] Stuck in spConnect()

Lucas Holmquist lholmqui at redhat.com
Tue Apr 1 15:33:10 EDT 2014


we store some things in local-storage,  so you would need to delete that record.

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't have it in front of me


On Apr 1, 2014, at 2:50 PM, Michi Oshima <michi.oshima at gmail.com> wrote:

> Hi,
> 
> I'm trying to adapt the sample code under aerogear-simplepush-unifiedpush-quickstart for my application.  I'm having a problem inside spConnect() function.
> 
> 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 UPClient.registerWithPushServer(...).
> 
> Every subsequent run of the spConnect() function skips the line to call UPClient.registerWithPushServer(...), because PushManager.register() call doesn't return a pushEndpoint.  (That's what you check in this line, correct?)
> 
> I'm guessing that I am somehow successfully registered with the simple push server, but not with the unified push server.  I'm very new to AeroGear, so I'm not at all sure.
> 
> How should I best recover from this?  
> If I'm correct about what's going on, how should I rearrange the code so that I can properly handle the situation where I'm registered with the simple push server but not with the unified push server?
> Thank you,
> 
> Michi Oshima
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20140401/8239044d/attachment.html 


More information about the aerogear-dev mailing list