I’m in the process of updating the mobile SDK from 5.1.0 to 7.0.1 for iOS. I have it compiling and running just fine inside our project, however, all of the delegate methods are getting called twice. “conferenceWillJoin”, “conferenceJoined”, etc…
Has anyone else noticed this issue? I’ve confirmed in the jitsi console logs where the “sendEvent()” happens only one time each, and I’ve confirmed I only have one instance of our JitsiMeetDelegate class via Xcode instruments.
Just for more information, using the same environment (Xcode version, npm, cocoapods) I verified that 5.1.0 triggers the methods only 1x, but all later SDKs trigger them 2x.
@saghul I have sorted out the problem. I added some logging in JitsiMeetView.m and was able to verify that two of the init functions are triggered, thus causing the duplicate calls for initWithXXX thus calling registerObservers twice.
In our project, I’ve been initializing the JitsiMeetView like this: currentJitsiView = JitsiMeetView()
we set the frame at a later time.
I updated that to be: currentJitsiView = JitsiMeetView(frame: frame)
this has fixed the duplicate init calls in JitsiMeetView.m where only initWithFrame:(CGRect)frame is called, and registerObservers is now only called once.
I’ll open an issue, but it’s not a fix inside your code. The fix is inside our project where we are initializing the JitsiMeetView. Instead of just calling “init()” we are now calling “initWithFrame()”.
@saghul I now have a M1 laptop and discovered today that the build script needs to be updated for the fact that iOS simulators are in fact arm64 on the M1 processors. Can you guys put a note in the handbook about this?