[
https://issues.apache.org/jira/browse/CB-882?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13643765#comment-13643765
]
Filipe Cruz commented on CB-882:
--------------------------------
tried a few more things, both versions of the plugins were deprecated, i found
a more recent fork but also giving some compiler errors on "cordova build", i
changed some code and it compiles now, here is latest version:
https://github.com/psenough/PhoneGap-Android-HTML5-WebSocket
but it still crashes the app when calling
appView.addJavascriptInterface() on the main .java onCreate() function
searching the internets it seems the function is deprecated and folks suggest
you use the phonegap plugins xml declaration
will try to figure it out checking the examples from
https://github.com/phonegap/phonegap-plugins/tree/master/Android
but i really have no clue what the hell i'm doing. nor how to integrate it with
cordova-cli "plugin add" later on.
any pointers on any of this would be highly appreciated.
> Cross mobile socket support
> ---------------------------
>
> Key: CB-882
> URL: https://issues.apache.org/jira/browse/CB-882
> Project: Apache Cordova
> Issue Type: New Feature
> Components: Android, Bada, CordovaJS, WP7
> Reporter: Jordan Stout
> Assignee: Andrew Grieve
> Labels: features, socket, sockets
>
> I tested the use of socket.io in an iOS app and I was able to successfully
> communicate back and forth from mobile to desktop. All I did was grab the
> same socket.io script hosted from the node.js server (as a quick test)... Of
> course, this may be cool and all, but I'm not sure how "cross mobile" it is.
> How hard will it be to create native socket support for most (or all) devices
> so developers can talk to socket.io servers (or any other service) natively
> without including the socket.io client scripts?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira