Closed nobodyjoh closed 10 years ago
@djdelarue current master branch is a work in progress for PhoneGap 3.0. If you want to use it with PhoneGap 2.9.0 please use https://github.com/mkuklis/phonegap-websocket/tree/phonegap-2.x.x branch
Yes i know i use this branch tust's why i don't understand
@djdelarue oh I see. Please make sure cordova.js is being included in your html file.
Yes it is. When i look with firebug i see cordova.js and cordova_plugins.js. however i can't look cordova_plugins content, there are only cordova content i can read
That's strange. I'm not really sure why you are getting this exception. Perhaps 2.9.0 changed its API. Can you try with a lower version (2.8.x). Also here is a repo with demo based on this plugin: https://bitbucket.org/mkuklis/phonegap-websocket-demo
Hi i'm be back, i try with phonegap 2.8.0 and it works with emulator but on my Htc One i have the same error, even if i use a Nexus 4 (same smartphone on emulator). It's really curious :/
@djdelarue I fixed a couple of things on the master branch for PhoneGap 3.x.x. There is also a demo setup based on node.js here: https://bitbucket.org/mkuklis/phonegap-websocket-demo Please give it a try with the PhoneGap >= 3.x.x
Hi, I search since Monday but impossible to find what is the error, i use phonegap 2.9.0 so i put your differents file in my project but i have this error and i don't understand.
My html file :
I put java_websocket.jar on /libs/ and add to build path
And finaly i put two file CordovaClient.java and WebSocket.java on src
My MainActivity :
And i put this on confil.xml
If you have an idea :)
Thanks