iOS Cordova: Does Cordova create multiple instances of an objective-C plugin when called more than once?
问题 I am working on a iOS hybrid application based on Cordova. We have a Objective-C plugin file (MyPlugin.h and MyPlugin.m) which is typically a subclass of CDVPlugin. We call the objective-C plugin from a JavaScript file like below. cordova.exec(success, error, "MyPlugin", "callNativeActivity", args); Here, success- success callback function, error- error callback function and args- array of arguments. Below is the native plugin method signature. -(void)callNativeActivity:(CDVInvokedUrlCommand