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

Compatibility issues with emulators #72

Open ocram opened 8 years ago

ocram commented 8 years ago

Does this library work in the emulator? We had quite a few examples here already where things only worked on a real device.

What's wrong on emulators? Are there any exceptions?

What server URL to use when both the server and the emulator run locally on the development machine? Something like ws://127.0.0.1/websocket?

Some other libraries have to disable IPv6 when using the emulator. So maybe this helps:

// if (Build.PRODUCT.equals("google_sdk")) {
java.lang.System.setProperty("java.net.preferIPv6Addresses", "false");
java.lang.System.setProperty("java.net.preferIPv4Stack", "true");
// }
ocram commented 8 years ago

This issue seems to be related: https://github.com/delight-im/Android-DDP/issues/46