一、经过 Cordova Plugins 安装,ionic plugin add jpush-phonegap-plugin --variable API_KEY=your_jpush_appkey(在极光推送官网上注册的应用密钥)html
二、直接经过 url 安装:ionic plugin add https://github.com/jpush/jpush-phonegap-plugin.git --variable API_KEY=your_jpush_appkeygit
若是遇到git找不到的error,提示:Error: “git” command line tool is not installed: make sure it is accessible on your path;那么主要是没有安装git或者git环境变量没有配置,解决方案:安装git并进行环境变量配置,从新打开cmd进行插件加载便可。github