add a remote plug-in using
<span style= "FONT-SIZE:14PX;" >$ Cordova Plugin Add org.apache.cordova.device</span>
and if the local plug-in is not configured, every time Cordova build iOS, CONFIG. s will lose the reference, how is this good?
go back to the root directory and configure the. json file in plugins;As for how to configure, you can first add a remote plug-in, and then copy his format;
if the local plug-in has. js, you also need to"Installed_plugins": {
"Org.apache.cordova.inappbrowser": {
"Package_name": "Com.example.hello"
}
}
This place is configured, because I write plug-ins are generally iOS source files, so you need to configure;
if it was developed at the same time through SVN and Android, any one add remote plug-in, the other side will have a problem, the problem is,. JSON is configured with commands, but the actual project file is not imported. Returning to build is not possible. this time you need to manually import the file. First, configure your own. JSON, method or copy it remotely.
then, create a remote plugin in your own copy, and the directory structure is made as follows:
Finally follow the path, copy all project:
that's OK.
Summary: If you do not add the remote plug-in, be sure to configure. JSON. Then copy the source remote plug-in to the project.
Cordova Configure your own plugin