当前项目整合了小米,华为,极光,DDPush推送,使用时需将项目中的add_push_plugin.sh中的变量重新配置,并放于所要加载插件的ionic项目的根目录下执行。
以下为需要修改的插件所需变量:
>#极光
>JPUSH_API_KEY(String)
>#小米
>XIAOMI_APP_ID (String)
>XIAOMI_APP_KEY (String)
>#DDPush
>DDPUSH_APP_ID (Integer)
>DDPUSH_SERVER_PORT (Integer)
>DDPUSH_SERVER_ADDR (String)
>#你插件项目所在地址
>PLUGIN_PATH (String)
Requires cordova 7+
# install depandency package
npm install
# install cordova environment
npm install -g cordova
# install push plugin
./add_push_plugin.shhttp://cordova.apache.org/docs/en/latest/plugin_ref/spec.html