Vonage-Community / sample-video-flutter-app

Apache License 2.0
5 stars 1 forks source link

"Duplicate plugin key: <com.vonage>" #20

Open LampeMW opened 10 months ago

LampeMW commented 10 months ago

I'm running the sample app and running into an issue on iOS. I get the exception "Duplicate plugin key: " when the app starts up. I'm not familiar with Objective C/Swift and am hacking my way through trying to figure this out, but it appears if I comment out the other self.registrar calls and only have 1, the app will run without the exception. Is anyone able to help figure out what's causing this issue?

Inside AppDelegate.swift:

func setPlatformViews(){
        weak var registrar = self.registrar(forPlugin: "com.vonage")

       self.registrar(forPlugin: "<com.vonage>")!.register(
           OpentokVideoFactory(messenger: registrar!.messenger()),
           withId: "opentok-video-container")

//       self.registrar(forPlugin: "<com.vonage>")!.register(
//           ArchivingFactory(messenger: registrar!.messenger()),
//           withId: "opentok-archiving-container")
//        
//       self.registrar(forPlugin: "<com.vonage>")!.register(
//           MultiVideoFactory(messenger: registrar!.messenger()),
//           withId: "opentok-multi-video-container")
//        
//       self.registrar(forPlugin: "<com.vonage>")!.register(
//           ScreenSharingFactory(messenger: registrar!.messenger()),
//           withId: "opentok-screenshare-container")

}