<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Feb 27, 2014 at 3:30 PM, ttretau <span dir="ltr">&lt;<a href="mailto:bam@tretau.net" target="_blank">bam@tretau.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hello all,<br>
<br>
I am just starting to build a proof of concept with Aerogear unified push<br>
server on openshift with the openshift cartridge, and I must say that it<br>
looks really good!<br></blockquote><div><br></div><div>awesome!</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<br>
I started with the hellopush example from Burr Sutter -<br>
<a href="https://github.com/burrsutter/hellopush" target="_blank">https://github.com/burrsutter/hellopush</a> (thanks!), running with cordova..<br>
<br>
I have one anomaly which looks strange: on iOS everything receives great on<br>
Tablet and Phone devices.<br>
If I test it on Android phone (running 4.4) I have to switch from Wifi to 3G<br>
to receive notifications. On a Wifi only tablet I do receive not any events.<br></blockquote><div><br></div><div>That&#39;s weird :) Your device is listed on the unifiedpush admin console, right ? </div><div>I guess, otherwise you would also not receive messages, when on 3G  :)</div>
<div><br></div><div>Kinda odd, but not sure... You phone should be able to receive messages on local wifi as well.</div><div>All it needs: a working internet connection (internally Google&#39;s GCM has a persistent connection to your phone)</div>
<div><br></div><div><br></div><div><br></div><div><br></div><div>The exception below is no harm at all - it&#39;s an open issue at the APNs lib we use internally:</div><div><br></div><div><a href="https://github.com/notnoop/java-apns/issues/109#issuecomment-21111291">https://github.com/notnoop/java-apns/issues/109#issuecomment-21111291</a><br>
</div><div><br></div><div>Not a bug - but indeed annoying to see this in the log.. :-/</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<br>
-------------<br>
In the server log I see something like this:<br>
2014/02/27 05:19:06,921 INFO<br>
[org.jboss.aerogear.unifiedpush.rest.sender.PushNotificationSenderEndpoint]<br>
(http-127.5.104.1-127.5.104.1-8080-1) Message submitted to PushNetworks for<br>
further processing<br>
2014/02/27 05:19:08,437 INFO  [com.notnoop.apns.internal.ApnsConnectionImpl]<br>
(Thread-99) Exception while waiting for error code:<br>
java.net.SocketException: Socket closed<br>
        at java.net.SocketInputStream.socketRead0(Native Method) [rt.jar:1.7.0_51]<br>
        at java.net.SocketInputStream.read(SocketInputStream.java:152)<br>
[rt.jar:1.7.0_51]<br>
        at java.net.SocketInputStream.read(SocketInputStream.java:122)<br>
[rt.jar:1.7.0_51]<br>
        at sun.security.ssl.InputRecord.readFully(InputRecord.java:442)<br>
[jsse.jar:1.7.0_51]<br>
        at sun.security.ssl.InputRecord.read(InputRecord.java:480)<br>
[jsse.jar:1.7.0_51]<br>
        at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:927)<br>
[jsse.jar:1.7.0_51]<br>
        at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:884)<br>
[jsse.jar:1.7.0_51]<br>
        at sun.security.ssl.AppInputStream.read(AppInputStream.java:102)<br>
[jsse.jar:1.7.0_51]<br>
        at java.io.InputStream.read(InputStream.java:101) [rt.jar:1.7.0_51]<br>
        at<br>
com.notnoop.apns.internal.ApnsConnectionImpl$1MonitoringThread.run(ApnsConnectionImpl.java:114)<br>
[apns-0.2.3.jar:]<br>
-------------------<br>
<br>
As I do receive on 3G I presume that the exception is unrelated to the<br>
problem?<br>
<br>
Kind Regards,<br>
<br>
Torben<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://aerogear-dev.1069024.n5.nabble.com/Android-Push-3G-WiFi-tp6569.html" target="_blank">http://aerogear-dev.1069024.n5.nabble.com/Android-Push-3G-WiFi-tp6569.html</a><br>
Sent from the aerogear-dev mailing list archive at Nabble.com.<br>
_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</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></div>