From 0c6450231be83a9cdaa2fac2eced2ce8e7013ceb Mon Sep 17 00:00:00 2001 From: Hevin Date: Thu, 21 Jul 2016 16:31:15 +0800 Subject: [PATCH] Fix API doc. --- doc/Common_detail_api.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/doc/Common_detail_api.md b/doc/Common_detail_api.md index 5827b61..6bcf698 100644 --- a/doc/Common_detail_api.md +++ b/doc/Common_detail_api.md @@ -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