Skip to content

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

@lampemw

Description

@lampemw

I'm running the sample app and running into an issue on iOS. I get the exception "Duplicate plugin key: <com.vonage>" 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")
        
}
    ```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions