Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
[iOS] Use loadURL in the app
Lyubo Marinov6b2a93909b4d
diff --git a/ios/sdk/src/JitsiMeetView.m b/ios/sdk/src/JitsiMeetView.mindex ca1f745072..2d0edb2b6e 100644--- a/ios/sdk/src/JitsiMeetView.m+++ b/ios/sdk/src/JitsiMeetView.m@@ -139,6 +139,17 @@ static NSMapTable<NSString *, JitsiMeetView *> *views;continueUserActivity:(NSUserActivity *)userActivityrestorationHandler:(void (^)(NSArray *restorableObjects))restorationHandler{+ // XXX At least twice we received bug reports about malfunctioning loadURL+ // in the Jitsi Meet SDK while the Jitsi Meet app seemed to functioning as+ // expected in our testing. But that was to be expected because the app does+ // not exercise loadURL. In order to increase the test coverage of loadURL,+ // channel Universal linking through loadURL.+ if ([userActivity.activityType+ isEqualToString:NSUserActivityTypeBrowsingWeb]+ && [JitsiMeetView loadURLInViews:userActivity.webpageURL]) {+ return YES;+ }+return [RCTLinkingManager application:applicationcontinueUserActivity:userActivityrestorationHandler:restorationHandler];@@ -148,6 +159,15 @@ static NSMapTable<NSString *, JitsiMeetView *> *views;openURL:(NSURL *)urlsourceApplication:(NSString *)sourceApplicationannotation:(id)annotation {+ // XXX At least twice we received bug reports about malfunctioning loadURL+ // in the Jitsi Meet SDK while the Jitsi Meet app seemed to functioning as+ // expected in our testing. But that was to be expected because the app does+ // not exercise loadURL. In order to increase the test coverage of loadURL,+ // channel Universal linking through loadURL.+ if ([JitsiMeetView loadURLInViews:url]) {+ return YES;+ }+return [RCTLinkingManager application:applicationopenURL:urlsourceApplication:sourceApplication@@ -249,6 +269,24 @@ static NSMapTable<NSString *, JitsiMeetView *> *views;#pragma mark Private methods++ (BOOL)loadURLInViews:(NSURL *)url {+ BOOL handled = NO;++ if (views) {+ for (NSString *externalAPIScope in views) {+ JitsiMeetView *view+ = [JitsiMeetView viewForExternalAPIScope:externalAPIScope];++ if (view) {+ [view loadURL:url];+ handled = YES;+ }+ }+ }++ return handled;+}++ (instancetype)viewForExternalAPIScope:(NSString *)externalAPIScope {return [views objectForKey:externalAPIScope];}