Merge remote-tracking branch 'refs/remotes/origin/master' into dev

This commit is contained in:
Hevin 2016-07-22 11:22:04 +08:00
commit 714a811ef2
2 changed files with 7 additions and 8 deletions

View File

@ -17,7 +17,7 @@
- 通过 Cordova Plugins 安装,要求 Cordova CLI 5.0+
cordova plugin add jpush-phonegap-plugin --variable API_KEY=your_jpush_appkey
cordova plugin add jpush-phonegap-plugin --variable API_KEY=your_jpush_appkey
- 或者直接通过 url 安装:

View File

@ -86,14 +86,13 @@ JPush SDK 会恢复正常的默认行为。(因为保存在本地的状态数
#### 代码示例
window.plugins.jPushPlugin.resumePush(callback)
var onCallback = function(data) {
if(data > 0) {
// 关闭
} else {
window.plugins.jPushPlugin.isPushStopped(function (result) {
if (result == 0) {
// 开启
}
}
} else {
// 关闭
}
})
## 获取 RegistrationID