Issues interoperating with iOS / JS

Ask questions about the iOS API here

Issues interoperating with iOS / JS

Postby victorsb » Sat Nov 24, 2012 2:04 am

Hello,

I am having issues with my iOS Client interoperating with my Web Client.

I can see all webclients in my iOS app but iOS clients are not seen in the web version.

I am using: https://swww.tokbox.com/v1.1/js/TB.min.js

And the last pulled version of the iOS SDK trough the phonegap plugin.

Any ideas on how to debug this?
Was this post helpful? (0)
victorsb
 
Posts: 36
Joined: Tue Sep 20, 2011 3:21 pm
Thumbs Up: 4

Re: Issues interoperating with iOS / JS

Postby ankur » Sat Nov 24, 2012 5:11 pm

Hey Victor!

I just tested out using the HelloWorld sample with the HTTPS version of the TB library and the interop is working as expected.

Are you using the WebRTC version of the iOS SDK by accident? The URL for TB.js that you provided is for OpenTok without WebRTC.

If thats not the issue, can you try out the HelloWorld sample with that library URL so that we can start to narrow down the possible failure points?

Thanks,

Ankur
Was this post helpful? (0)
ankur
 
Posts: 356
Joined: Thu Jun 02, 2011 12:37 am
Thumbs Up: 12

Re: Issues interoperating with iOS / JS

Postby victorsb » Sun Nov 25, 2012 4:14 am

Hi Ankur,

I am using the non-webrtc version in both clients in fact the ios version is seeing the web version perfectly. The issue is the other way around the video published from iOS is not seen by the web version.

I just re-downloaded the helloworld app for ios and generated a token. It works as you said just fine with my web version.

The first thing I am noticing is that the version in my app is newer that the one in the hello world application:

In my app...

Code: Select all
2012-11-25 12:12:05.104 MashMeTV_Mob[28283:907] ------------------------------------------------
2012-11-25 12:12:05.105 MashMeTV_Mob[28283:907] OpenTok iOS Library
2012-11-25 12:12:05.106 MashMeTV_Mob[28283:907] Release version built on Nov  8 2012 at 17:40:53
2012-11-25 12:12:05.106 MashMeTV_Mob[28283:907] Copyright 2012 Tokbox, Inc.
2012-11-25 12:12:05.107 MashMeTV_Mob[28283:907] Licensed under the Apache License, Version 2.0
2012-11-25 12:12:05.107 MashMeTV_Mob[28283:907] ------------------------------------------------


In the hello world app:

Code: Select all
2012-11-25 12:06:51.925 OpenTokHello[28246:907] ------------------------------------------------
2012-11-25 12:06:51.926 OpenTokHello[28246:907] OpenTok iOS Library
2012-11-25 12:06:51.927 OpenTokHello[28246:907] Release version built on Sep 14 2012 at 13:50:47
2012-11-25 12:06:51.928 OpenTokHello[28246:907] Copyright 2012 Tokbox, Inc.
2012-11-25 12:06:51.929 OpenTokHello[28246:907] Licensed under the Apache License, Version 2.0
2012-11-25 12:06:51.930 OpenTokHello[28246:907] ------------------------------------------------


Does this sound as something that can become in the issue I am describing?

Regards
Was this post helpful? (0)
victorsb
 
Posts: 36
Joined: Tue Sep 20, 2011 3:21 pm
Thumbs Up: 4

Re: Issues interoperating with iOS / JS

Postby victorsb » Sun Nov 25, 2012 6:42 am

Edit: Just to remind I am using the phonegap plugin not the iOS sdk directly
Was this post helpful? (0)
victorsb
 
Posts: 36
Joined: Tue Sep 20, 2011 3:21 pm
Thumbs Up: 4

Re: Issues interoperating with iOS / JS

Postby ankur » Mon Nov 26, 2012 2:07 pm

Victor,

I just also tried this using the PhoneGap Plugin and all seems well. I am also running the Nov 8 Opentok.framework build with PhoneGap. (I actually was running this same build in HelloWorld, but I probably updated the submodule separately from the repo. The repo is now updated so if you do a `git pull` in the HelloWorld directory you should also get the Nov 8 build).

Can you set TB.setLogLevel(TB.DEBUG) in the web client code and then send us the output you get? Also, can you send us a sessionId so that we can look into what events are occurring?

-- Ankur
Was this post helpful? (0)
ankur
 
Posts: 356
Joined: Thu Jun 02, 2011 12:37 am
Thumbs Up: 12

Re: Issues interoperating with iOS / JS

Postby ankur » Mon Nov 26, 2012 2:15 pm

Also, if you create an Issue ID (Cmd+Shift+click on the logo in the web client publisher) and send that to us, that would also help.
Was this post helpful? (0)
ankur
 
Posts: 356
Joined: Thu Jun 02, 2011 12:37 am
Thumbs Up: 12

Re: Issues interoperating with iOS / JS

Postby victorsb » Thu Nov 29, 2012 5:11 pm

Sorry for the delay answering, we finally figure it out...

The issue was we had a phonegap plugin using NSThread communicating with the Main thread updating UI... this works fine, but when mixed with OpenTok SDK it explodes.

We solve it by avoiding the phonegap plugin to had a background thread during the OT session.

Is this a known issue of the SDK, do you know of someone having issues with NSThread running at the same time with your api?

Thanks again, and regards!
Was this post helpful? (0)
victorsb
 
Posts: 36
Joined: Tue Sep 20, 2011 3:21 pm
Thumbs Up: 4

Re: Issues interoperating with iOS / JS

Postby janine » Mon Dec 03, 2012 8:45 am

Hi Victor~ thanks for the update! Song is looking into the issue with phonegap and we will get back to you when we have more insight. Sorry for the trouble and thanks for you patience (as usual!)
Was this post helpful? (0)
janine
 
Posts: 1698
Joined: Thu May 05, 2011 7:10 pm
Thumbs Up: 20

Re: Issues interoperating with iOS / JS

Postby victorsb » Tue Dec 04, 2012 2:57 am

You are welcome :)

Let me know if you figure it out, it is not critical for what we are building but if will be good to have NSThreads working at the same time that the OTSession for future enhancements.

Thank you for the great costumer service as always

Regards
Was this post helpful? (0)
victorsb
 
Posts: 36
Joined: Tue Sep 20, 2011 3:21 pm
Thumbs Up: 4


Return to iOS (Native)



Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest

cron