增加统计接口

This commit is contained in:
zhangqinghe
2015-01-26 14:23:45 +08:00
parent 7c1c29a7ec
commit 260c298f6b
2 changed files with 41 additions and 1 deletions
+20
View File
@@ -149,6 +149,7 @@ JPushPlugin.prototype.receiveMessageInAndroidCallback = function(data){
console.log("JPushPlugin:pushCallback "+exception);
}
}
//
JPushPlugin.prototype.openNotificationInAndroidCallback = function(data){
try{
@@ -253,6 +254,25 @@ JPushPlugin.prototype.clearLocalNotifications = function(){
this.call_native("clearLocalNotifications",data,null);
}
}
JPushPlugin.prototype.onResume = function(){
if(device.platform == "Android") {
data=[]
this.call_native("onResume",data,null);
}
}
JPushPlugin.prototype.onPause = function(){
if(device.platform == "Android") {
data=[]
this.call_native("onPause",data,null);
}
}
JPushPlugin.prototype.reportNotificationOpened = function(msgID){
if(device.platform == "Android") {
this.call_native("reportNotificationOpened",[msgID],null);
}
}
//iOS single