Got a reply from Miguel:

<miguel>
Hi Matthias,

I tried the https and I managed to connect! Geat.
The funny part of the whole thing is that I always used the https:// but with the simplepush string...

Yes, I'll join the mailing list.
</miguel>

based on that (and the earlier provided stack trace), I filed this ticket:

https://issues.jboss.org/browse/AGDROID-214




On Mon, Feb 17, 2014 at 7:27 AM, Matthias Wessendorf <matzew@apache.org> wrote:
Miguel, note the redirect to https is only on OpenShift - on you local machine, all stays http

-M


On Mon, Feb 17, 2014 at 7:23 AM, Matthias Wessendorf <matzew@apache.org> wrote:
Hello Miguel,

forwarding this to our developer list (see [1]). Feel free to subscribe to it.


Looking at your stacktrace, I think the problem here is that you are not using the https scheme
(02-16 15:51:30.899: E/HttpRestProvider(21213): Error on POST of http://aerogear-metalpush.rhcloud.com/rest/registry/device)

when posting to http, the server does a redirect (302) to the https scheme, looks like this is not understood by our Android library.

Can you try the same registration process, but instead using https ( https://aerogear-metalpush.rhcloud.com ) ?

Greetings,
Matthias





On Sun, Feb 16, 2014 at 5:25 PM, Miguel Lemos <miguel21op@gmail.com> wrote:
Dear all,

I made an update to your last  library  version and I get the same errors.
My app uses Cordova 3.3 and the device where I test the plugin runs Android 4.1.

I attach a small logcat file where is summarized what makes the app not register (?) to the service.

The errorHandler function, as I said before, throws this error:

java.io.IOException:BufferedinputStream is closed

The app itself keeps running, though...
I appreciate any help because I don't know what else I can do.

A  thing I noticed:

Inside the Aerogear Console, where is the Android Variant with all data, the table that describes the Token, Device, etc, is empty. I presume it's only filled the first time the device manages to register, or else...?

I think your solution is very promising and makes the right approach to a real problem, but i must manage to make it work :-(

Thanks again

Miguel

_______________________________________________
aerogear-issues mailing list
aerogear-issues@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-issues



--
Matthias Wessendorf

blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf



--
Matthias Wessendorf

blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf



--
Matthias Wessendorf

blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf