delight-im / Android-DDP

[UNMAINTAINED] Meteor's Distributed Data Protocol (DDP) for clients on Android
Apache License 2.0
274 stars 54 forks source link

It works only with wifi #90

Closed romaluca closed 8 years ago

romaluca commented 8 years ago

hi, i'm trying my app on my phone. When it is connected to wifi all work. But when it is connected on 3g i the meteor connection not works. And it return this error:

04-27 13:46:53.583 425-425/com.shuttertop.app E/METEOR: Exception!!!!
04-27 13:46:53.583 425-425/com.shuttertop.app W/System.err: com.firebase.tubesock.WebSocketException: IO Error
04-27 13:46:53.584 425-425/com.shuttertop.app W/System.err:     at com.firebase.tubesock.WebSocketReceiver.run(WebSocketReceiver.java:78)
04-27 13:46:53.584 425-425/com.shuttertop.app W/System.err:     at com.firebase.tubesock.WebSocket.runReader(WebSocket.java:372)
04-27 13:46:53.584 425-425/com.shuttertop.app W/System.err:     at com.firebase.tubesock.WebSocket.access$000(WebSocket.java:30)
04-27 13:46:53.584 425-425/com.shuttertop.app W/System.err:     at com.firebase.tubesock.WebSocket$2.run(WebSocket.java:108)
04-27 13:46:53.584 425-425/com.shuttertop.app W/System.err:     at java.lang.Thread.run(Thread.java:818)
04-27 13:46:53.584 425-425/com.shuttertop.app W/System.err: Caused by: java.io.EOFException
04-27 13:46:53.585 425-425/com.shuttertop.app W/System.err:     at libcore.io.Streams.readFully(Streams.java:83)
04-27 13:46:53.585 425-425/com.shuttertop.app W/System.err:     at java.io.DataInputStream.readFully(DataInputStream.java:99)
04-27 13:46:53.585 425-425/com.shuttertop.app W/System.err:     at com.firebase.tubesock.WebSocketReceiver.read(WebSocketReceiver.java:141)
04-27 13:46:53.585 425-425/com.shuttertop.app W/System.err:     at com.firebase.tubesock.WebSocketReceiver.run(WebSocketReceiver.java:34)
04-27 13:46:53.585 425-425/com.shuttertop.app W/System.err:     ... 4 more
04-27 13:46:53.585 425-425/com.shuttertop.app I/METEOR: disconnected!!!!

in my manifest i have: <uses-permission android:name="android.permission.INTERNET" />

Do you have any solution? Thanks!

ocram commented 8 years ago

That's strange. Thanks!

This library (and its WebSocket library) really shouldn't care what technology is used to establish an internet connection. All they need is connectivity, no matter what way.

Can anybody confirm or disprove this problem/bug?

romaluca commented 8 years ago

it was a bug of my cm13! in debug mode in my phone doesn't work

Thanks!

ocram commented 8 years ago

What a relief! Good to hear it's not a bug in this library :) Thanks!

TingaZ commented 7 years ago

Hi

Did you guys find a solution to this problem, cause I'm about to deploy my app to the GooglePlayStore but it still cannot connect using mobile internet but it does only with wifi? Please help..

ocram commented 7 years ago

@TingaZ I don't think there's any bug in this library here, so there's nothing to fix.

it was a bug of my cm13! in debug mode in my phone doesn't work

TingaZ commented 7 years ago

Yeah, it wasn't any bug but just a matter of allowing background data on Google Play Service on my device.

On 22 Feb 2017 15:56, "Marco" notifications@github.com wrote:

@TingaZ https://github.com/TingaZ I don't think there's any bug in this library here, so there's nothing to fix.

it was a bug of my cm13! in debug mode in my phone doesn't work

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/delight-im/Android-DDP/issues/90#issuecomment-281675592, or mute the thread https://github.com/notifications/unsubscribe-auth/AON5H2hFAWI7uVTMjz0wc5-3npOJ0vdGks5rfD50gaJpZM4IQ3D8 .