Hey Guys,
i’m writing my first App in Ionic (with AngularJS) and i’m using WebSockets (ng-websocket) to communicate with my Server Application.
The problem is, that WebSockets are not available in older Versions of Android, so i get this Error message:
E/Web Console﹕ Uncaught ReferenceError: WebSocket is not defined at file:///android_asset/www/lib/ng-websocket/ng-websocket.js:130
in my Log Files on my 4.1.1 emulator. So I found Cordova plugins like WebSocket-for-Android and phonegap-websocket. I installed them both (not at same time) with:
cordova plugin add https://github.com/mkuklis/phonegap-websocket
cordova plugin add cordova-plugin-websocket
but my App is still not working Can anyone help me with this problem?
Is there plugin that actually works?