songz / cordova-plugin-opentok

Cordova Plugin for OpenTok - add webrtc video to your iOS or Android App
Other
162 stars 270 forks source link

session.connect(token) not triggering connectionCreated event #82

Closed marufdolani closed 10 years ago

marufdolani commented 10 years ago

session.connect(token) not triggering connectionCreated event. The connect method does not fail but does not trigger any event. I need a reference to the connection object for my app and this is just not working. Any suggestions?

marufdolani commented 10 years ago

https://github.com/songz/cordova-plugin-opentok/blob/246e9d4489f1adcb7f879329ea59cefa47db2bfc/src/js/OTSession.coffee#L25

This line is triggering sessionConnected event which is deprecated as per the documentation. I tried to hook onto that event but it does not trigger either :(

marufdolani commented 10 years ago

Ignore this. i recreated a new project and it worked. apparently removing and adding the plugin does not work.