“id”: “org.apache.cordova.vibration.notification”,
“merges”: [
“navigator.notification”
]
},
{
“file”: “plugins/intent.js”,
“id”: “org.apache.cordova.intent”,
“merges”: [
“navigator.intent”
]
},
];
module.exports.metadata =
// TOP OF METADATA
{
“org.apache.cordova.camera”: “0.2.7”,
“org.apache.cordova.dialogs”: “0.2.6”,
“org.apache.cordova.vibration”: “0.3.7”,
“org.apache.cordova.intent” :“0.0.1”,
}
// BOTTOM OF METADATA
});
我之前配置了camera ,dialog , vibration ,大家可以参考
现在来分解 ,这里要配置2个地方
module.exports= [{}];
module.exports.metadata = { }
在module.exports 的花括号里面配置
{
“file”: “plugins/intent.js”,
“id”: “org.apache.cordova.intent”,
“merges”: [
“navigator.intent”
]
},
file 代表 ja