songz/cordova-plugin-opentok

iOS ConnectCompletionCallback not triggered

Opened this issue · 3 comments

Hello everyone, currently I am trying to run below code on cordova iOS(8.2) project.
When I check the javascript console, there is no console output. However when I check xcode output it says "Session did not connect, error code=1006". Do you have any idea why the callback function is not triggered on session.connect method ??

`var session = OT.initSession(apiKey, sessionId);

session.connect(token, function (error) {
if(error){
console.log('Session connection failed');
}
else{
console.log('Connected to session');
}
});`

facing the same issue. Any success fixing it?

Facing the same issue. Can anyone help?