[aerogear-dev] Android Push: 3G /WiFi

ttretau bam at tretau.net
Thu Feb 27 09:30:06 EST 2014


Hello all,

I am just starting to build a proof of concept with Aerogear unified push
server on openshift with the openshift cartridge, and I must say that it
looks really good!

I started with the hellopush example from Burr Sutter -
https://github.com/burrsutter/hellopush (thanks!), running with cordova..

I have one anomaly which looks strange: on iOS everything receives great on
Tablet and Phone devices.
If I test it on Android phone (running 4.4) I have to switch from Wifi to 3G
to receive notifications. On a Wifi only tablet I do receive not any events.

-------------
In the server log I see something like this:
2014/02/27 05:19:06,921 INFO 
[org.jboss.aerogear.unifiedpush.rest.sender.PushNotificationSenderEndpoint]
(http-127.5.104.1-127.5.104.1-8080-1) Message submitted to PushNetworks for
further processing
2014/02/27 05:19:08,437 INFO  [com.notnoop.apns.internal.ApnsConnectionImpl]
(Thread-99) Exception while waiting for error code:
java.net.SocketException: Socket closed
	at java.net.SocketInputStream.socketRead0(Native Method) [rt.jar:1.7.0_51]
	at java.net.SocketInputStream.read(SocketInputStream.java:152)
[rt.jar:1.7.0_51]
	at java.net.SocketInputStream.read(SocketInputStream.java:122)
[rt.jar:1.7.0_51]
	at sun.security.ssl.InputRecord.readFully(InputRecord.java:442)
[jsse.jar:1.7.0_51]
	at sun.security.ssl.InputRecord.read(InputRecord.java:480)
[jsse.jar:1.7.0_51]
	at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:927)
[jsse.jar:1.7.0_51]
	at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:884)
[jsse.jar:1.7.0_51]
	at sun.security.ssl.AppInputStream.read(AppInputStream.java:102)
[jsse.jar:1.7.0_51]
	at java.io.InputStream.read(InputStream.java:101) [rt.jar:1.7.0_51]
	at
com.notnoop.apns.internal.ApnsConnectionImpl$1MonitoringThread.run(ApnsConnectionImpl.java:114)
[apns-0.2.3.jar:]
-------------------

As I do receive on 3G I presume that the exception is unrelated to the
problem?

Kind Regards,

Torben



--
View this message in context: http://aerogear-dev.1069024.n5.nabble.com/Android-Push-3G-WiFi-tp6569.html
Sent from the aerogear-dev mailing list archive at Nabble.com.


More information about the aerogear-dev mailing list