修改关于jpush.receiveNotification的文档,并删除旧有说明

This commit is contained in:
zhangqinghe
2015-06-09 17:31:57 +08:00
parent cb8f8412b4
commit 0233a10906
5 changed files with 75 additions and 41 deletions
-25
View File
@@ -2,31 +2,6 @@
### 获取 APNs(通知) 推送内容
#### event - jpush.receiveNotification
当iOS收到的通知时会触发这个事件
#####代码示例
- 在你需要接收通知的的js文件中加入:
document.addEventListener("jpush.receiveNotification", onReceiveNotification, false);
- onOpenNotification需要这样写:
var onReceiveNotification = function(event){
try{
var alert = event.aps.alert;
console.log("JPushPlugin:onReceiveNotification key aps.alert:"+alert);
}
catch(exeption){
console.log(exception)
}
}
#### API - receiveMessageIniOSCallback