<div dir="ltr">Hello Miguel,<div><br></div><div>forwarding this to our developer list (see [1]). Feel free to subscribe to it.</div><div><br></div><div><br></div><div>Looking at your stacktrace, I think the problem here is that you are not using the https scheme</div>
<div>(02-16 15:51:30.899: E/HttpRestProvider(21213): Error on POST of <a href="http://aerogear-metalpush.rhcloud.com/rest/registry/device">http://aerogear-metalpush.rhcloud.com/rest/registry/device</a>)<br></div><div><br>
</div><div>when posting to http, the server does a redirect (302) to the https scheme, looks like this is not understood by our Android library.</div><div><br></div><div>Can you try the same registration process, but instead using https ( <a href="https://aerogear-metalpush.rhcloud.com">https://aerogear-metalpush.rhcloud.com</a> ) ?</div>
<div><br></div><div>Greetings,</div><div>Matthias</div><div><br></div><div><br></div><div><br></div><div>[1] <a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Feb 16, 2014 at 5:25 PM, Miguel Lemos <span dir="ltr"><<a href="mailto:miguel21op@gmail.com" target="_blank">miguel21op@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Dear all,<br><br>I made an update to your last library version and I get the same errors.<br>
My app uses Cordova 3.3 and the device where I test the plugin runs Android 4.1.<br><br>I attach a small logcat file where is summarized what makes the app not register (?) to the service.<br>
<br>The errorHandler function, as I said before, throws this error:<br><br>java.io.IOException:BufferedinputStream is closed<br><br>The app itself keeps running, though...<br>I appreciate any help because I don't know what else I can do.<br>
<br>A thing I noticed:<br><br>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...?<br>
<br></div>I think your solution is very promising and makes the right approach to a real problem, but i must manage to make it work :-(<br><br></div>Thanks again<span class="HOEnZb"><font color="#888888"><br><br></font></span></div>
<span class="HOEnZb"><font color="#888888">Miguel<br></font></span></div>
<br>_______________________________________________<br>
aerogear-issues mailing list<br>
<a href="mailto:aerogear-issues@lists.jboss.org">aerogear-issues@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-issues" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-issues</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Matthias Wessendorf <br>
<br>blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>
twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a>
</div>