一、經過 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