Miguel, note the redirect to https is only on OpenShift - on you local machine, all stays http-MOn Mon, Feb 17, 2014 at 7:23 AM, Matthias Wessendorf <email@example.com> wrote:
Hello Miguel,forwarding this to our developer list (see ). 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,MatthiasOn Sun, Feb 16, 2014 at 5:25 PM, Miguel Lemos <firstname.lastname@example.org> wrote:
_______________________________________________MiguelThanks againDear all,I think your solution is very promising and makes the right approach to a real problem, but i must manage to make it work :-(
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...?
aerogear-issues mailing list