From e78d5bd544a2caeb65b70ab0699fffe9c5631a83 Mon Sep 17 00:00:00 2001 From: zhangqinghe Date: Thu, 19 Mar 2015 13:37:48 +0800 Subject: [PATCH] fix jpush.receiveNotification in document --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3519f56..2800ffa 100644 --- a/README.md +++ b/README.md @@ -528,11 +528,11 @@ iOS - 在你需要接收通知的的js文件中加入: - document.addEventListener("jpush.openNotification", onOpenNotification, false); + document.addEventListener("jpush.receiveNotification", onNotification, false); - onOpenNotification需要这样写: - var onOpenNotification = function(event){ + var onNotification = function(event){ try{ var alert = event.alert; var extras = event.extras;