Hello, Michi,
I *think* you hit a spot, where we are currently having some issues (see
[1]).
Once we agreed on a solution there, it should not be to hard to get that
fixed in both: 'master' and the 0.10.x branch of the UnifiedPush Server.
[1]
http://aerogear-dev.1069024.n5.nabble.com/aerogear-dev-Differences-betwee...
On Tue, Apr 1, 2014 at 8:50 PM, Michi Oshima <michi.oshima(a)gmail.com> wrote:
Hi,
I'm trying to adapt the sample code under
aerogear-simplepush-unifiedpush-quickstart<https://github.com/aerogear...
my application. I'm having a problem inside spConnect()
function<https://github.com/aerogear/aerogear-simplepush-unifiedpush-q...
.
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(...)<https://github.com/aerogear/aerog...
.
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<https://github.com/aerogear/aerogear-simplepush-unifiedpush-quick...;,
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.
1. How should I best recover from this?
2. 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(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-dev
--
Matthias Wessendorf
blog:
http://matthiaswessendorf.wordpress.com/
sessions:
http://www.slideshare.net/mwessendorf
twitter:
http://twitter.com/mwessendorf