如何将选项传递给meteor cordova pluginst安装?安装phonegap-plugin-push

时间:2016-07-05 06:43:52

标签: cordova meteor

在流星建设期间:meteor build --directory ..\outputdir --server myserver.tk:3232

我有错误,因为插件phonegap-plugin-push@1.7.2在 cordova插件添加的简单cordova项目中安装时需要 - 变量SENDER_ID =值 phonegap-plugin-push --variable SENDER_ID =" XXXXXXX"

=> Errors executing Cordova commands:

   While adding plugin phonegap-plugin-push@1.7.2 to Cordova project:
   Cordova error: Variable(s) missing (use: --variable SENDER_ID=value).
   (If the error message contains suggestions for a fix, note that this
   may not apply to the Meteor integration. You can try running again with
   the --verbose option to help diagnose the issue.)

如何在Meteor中逃避此类错误?

1 个答案:

答案 0 :(得分:2)

请阅读mobile-config

然后您需要包含在您的移动配置中:

App.configurePlugin('phonegap-plugin-push', {
  SENDER_ID: 'xxx'
});