jitsi / jitsi-meet-sdk-samples

Jitsi Meet mobile SDK examples (Android, iOS and React Native)
Apache License 2.0
273 stars 238 forks source link

Blank Screen #99

Closed karthikasdas closed 3 years ago

karthikasdas commented 3 years ago

Hello,

I tried to integrate jitsi in iOS App and tried to run it in simulator but getting a blank screen with following in debug area

[plugin] AddInstanceForFactory: No factory registered for id <CFUUID 0x6000027e8960> F8BB1C28-BAE8-11D6-9C31-00039315CD46 [JitsiMeetSDK] '2021-04-21T12:10:11.385Z', '[modules/browser/BrowserCapabilities.js]', 'This appears to be react-native, ver: 0.61.5-jitsi.2' [JitsiMeetSDK] TypeError: undefined is not an object (evaluating 'this.state.store.dispatch')

This error is located at: in S in t in RCTView in RCTView in h

Does anyone else has the issue? It would be great if someone can help me with this. Don't know where I am wrong.

Thanks, Karthika

saghul commented 3 years ago

Are you using the SDK? What version?

karthikasdas commented 3 years ago

Yes, JitsiMeetSDK (3.4.1)..I have used pod installation. While doing the install got an error like this - Ignoring ffi-1.13.1 because its extensions are not built. Try: gem pristine ffi --version 1.13.1

saghul commented 3 years ago

Can you please paste the full output?

karthikasdas commented 3 years ago

2021-04-21 16:10:11.340604+0400 Bestie[37164:702850] [plugin] AddInstanceForFactory: No factory registered for id <CFUUID 0x6000027e8960> F8BB1C28-BAE8-11D6-9C31-00039315CD46 2021-04-21 16:10:11.386735+0400 Bestie[37164:702828] [JitsiMeetSDK] '2021-04-21T12:10:11.385Z', '[modules/browser/BrowserCapabilities.js]', 'This appears to be react-native, ver: 0.61.5-jitsi.2' 2021-04-21 16:10:11.691387+0400 Bestie[37164:702828] [JitsiMeetSDK] TypeError: undefined is not an object (evaluating 'this.state.store.dispatch')

This error is located at: in S in t in RCTView in RCTView in h 2021-04-21 16:10:11.694272+0400 Bestie[37164:702828] [JitsiMeetSDK] TypeError: undefined is not an object (evaluating 'this.state.store.dispatch')

This error is located at: in S in t in RCTView in RCTView in h 2021-04-21 16:10:11.700967+0400 Bestie[37164:702825] [JitsiMeetSDK] Unhandled JS Exception: TypeError: undefined is not an object (evaluating 'this.state.store.dispatch')

This error is located at: in S in t in RCTView in RCTView in h 2021-04-21 16:10:11.702738+0400 Bestie[37164:702825] [JitsiMeetSDK] FATAL ERROR: RCTFatalException: Unhandled JS Exception: TypeError: undefined is not an object (evaluating 'this.state.store.dispatch')

This error is located at: in S in t in RCTView in RCTView in h Unhandled JS Exception: TypeError: undefined is not an object (evaluating 'this.state.store.dispatch')

This error is located at: in S in t in RCTView in RCTView in h, stack: value@1034:906 Ri@99:57222 Ui@99:57947 Di@99:60412 Fl@99:76347 Fl@:

@175:3915 Dl@99:74615 Dl@: Pl@99:65839 Pl@: @99:25495 @175:3915 sn@99:25442 cn@99:25377 kl@99:64831 la@99:87813 unmountComponentAtNode@99:90791 unmountComponentAtNodeAndRemoveContainer@99:90909 unmountApplicationComponentAtRootTag@342:1821 value@36:3685 @36:841 value@36:2939 value@36:813 value@:
karthikasdas commented 3 years ago

I am using URL from our backend. Just to make sure its not the culprit tried "https://meet.jit.si" as well but failed.

saghul commented 3 years ago

Do you have anything else before those logs?

karthikasdas commented 3 years ago

Nop..i have made a viewcotnrollers view as JitsiMeetView and presenting it on a button click now. This is the code in its didload().

override func viewDidLoad() { super.viewDidLoad() let jitsi:JitsiMeetView = JitsiMeetView(frame: self.view.frame) jitsi.delegate = self let options = JitsiMeetConferenceOptions.fromBuilder { [self] (builder) in builder.serverURL = NSURL(string: "https://meet.jit.si") as URL? } jitsi.join(options)

}
saghul commented 3 years ago

Thanks, we'll take a look.

karthikasdas commented 3 years ago

Thank you..really appreciate your time and effort.

karthikasdas commented 3 years ago

Hi, Any luck?

saghul commented 3 years ago

I haven't been able to reproduce it. I updated the iOS ObjC sample to SDK 3.4.1 (latest) and works just fine...

karthikasdas commented 3 years ago

Oh ok..can you give me a working example. The one that i downloaded is showing missing frameworks. Attached screenshot.

Jitsiss
saghul commented 3 years ago

Did you run pod install? THis is the one I tested https://github.com/jitsi/jitsi-meet-sdk-samples/tree/master/ios/objc/JitsiSDKTest

karthikasdas commented 3 years ago

Yes i did, do you think installing via pod has issue? Let me try by manual and let you know. And the samples (pod ones) were not working, both objc and swift for me.

karthikasdas commented 3 years ago

Hello,

It is fixed, i guess the issue was I am supposed to pass "room" in JitsiMeetConferenceOptions. If i dont use it, the app shows only activity indicator and nothing happens.

One more query and I shall close the issue, is it possible to test it in ios simulator?

Thanks for the quick responses.

saghul commented 3 years ago

Glad you got it working! I think we might be able to catch that error and throw an exception to make sure others don't make that mistake. I'll look into it.

Yes you can use it in the simulator, but some functionality won't work: local video, callkit, etc.