mirror of
https://github.com/jpush/jpush-phonegap-plugin.git
synced 2026-04-19 00:03:45 +08:00
增加统计接口
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user