delight-im / delight-im/Android-DDP

Compatibility issues with emulators

Open
#72 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
274
Forks
51
PR merge metrics
No merged PRs in 30d

Description

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:

``` java
// if (Build.PRODUCT.equals("google_sdk")) {
java.lang.System.setProperty("java.net.preferIPv6Addresses", "false");
java.lang.System.setProperty("java.net.preferIPv4Stack", "true");
// }
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.