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

Matthias Wessendorf matzew at apache.org
Thu Feb 27 09:57:22 EST 2014


On Thu, Feb 27, 2014 at 3:30 PM, ttretau <bam at tretau.net> wrote:

> 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!
>

awesome!


>
> 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.
>

That's weird :) Your device is listed on the unifiedpush admin console,
right ?
I guess, otherwise you would also not receive messages, when on 3G  :)

Kinda odd, but not sure... You phone should be able to receive messages on
local wifi as well.
All it needs: a working internet connection (internally Google's GCM has a
persistent connection to your phone)




The exception below is no harm at all - it's an open issue at the APNs lib
we use internally:

https://github.com/notnoop/java-apns/issues/109#issuecomment-21111291

Not a bug - but indeed annoying to see this in the log.. :-/



>
> -------------
> 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.
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>



-- 
Matthias Wessendorf

blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20140227/060ef343/attachment.html 


More information about the aerogear-dev mailing list