Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android support #19

Open
ghost opened this issue Aug 27, 2016 · 3 comments
Open

Android support #19

ghost opened this issue Aug 27, 2016 · 3 comments

Comments

@ghost
Copy link

ghost commented Aug 27, 2016

Unfortunately the library does not work with android. I have investigated this issue a bit and noticed that project tyrus v1.2.1 is used. This version uses some classes which are not part of the android-java (core) libraries (for example javax.naming.InitialContext).
Just loading the missing libraries to the android core libraries does not simply work and results in alot of pain with the dalvik compiler.
By using tyrus v1.5 this issue seems to be resolved (https://java.net/jira/browse/TYRUS-256).
Just changing the maven dependency to use the newer tyrus version is not working, too since the api seems to have changed a bit.

@ghost
Copy link
Author

ghost commented Sep 1, 2016

I forked this repository, removed tyrus and added a lightweight websocket library which works on android (link). I removed the tests because I was too lazy to modify them. It's more like a hotfix - but it works.

@SebNag
Copy link

SebNag commented Sep 1, 2016

Nice! Did not tried it yet but I was about to do the same. Anyway thanks for the work 👍

@xiaoxxcool
Copy link

I fixed here , neither fix the test case, so no pull request made, it works on my android device

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants