socket.io - Support for Websockets on Android -
i'm start project client has lots of data needs real-time.
there 2 mobile apps building trigger.io, web ui, , of these need stay in sync.
i plan use socket.io's websocket implementation node.js backend webapp & mobile apps. work great on ios , modern web browsers.
however, android's webview not support websockets @ all. , destroy mobile app user's data plan if socket.io used long-polling fallback on android.
i wondering: there possibility of implementation of java websockets trigger.io android, exposing webview? there simple implementation phonegap
i suppose write trigger.io plugin - want sure before jump in project if feasible / not hard write plugin for.
i used trigger.io long ago, not since fanciness came out native plugins.
if using http fallback solution isn't option (i'd calculations determine if streaming or long-polling solution "destroy mobile users's data plan") best solution add websocket support trigger.io plugin.
at pusher used java wrapper in phonegap in order our javascript library work. we've since added http fallback wouldn't recommend use now. project here: https://github.com/pusher/pusher-phonegap-android
the problem java wrapper here (we use websocket-android-phonegap) doesn't support ssl connections (if remember correctly) , hasn't been updated long time.
with in mind when created pusher java library (which supports android) used websocket client in java-websocket because it's being actively developed , supports ssl connections. i'd recommend it.
i'd interested hear support https://github.com/mkuklis/phonegap-websocket provides.
Comments
Post a Comment