参考这篇文章:https://github.com/phonegap-build/PushPlugin#automatic_installation 使用方法: 1、安装PushPlugin插件 cordova plugin add https://github.com/phonegap-build/PushPlugin.git 2、配置插件 View the code on Gist.