mirror of
https://github.com/jpush/jpush-phonegap-plugin.git
synced 2026-04-19 00:03:45 +08:00
增加了benginLogPageView
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
|
||||
var JPushPlugin = function(){
|
||||
};
|
||||
//private plugin function
|
||||
|
||||
JPushPlugin.prototype.isPlatformIOS = function(){
|
||||
return device.platform == "iPhone" || device.platform == "iPad" || device.platform == "iPod touch" || device.platform == "iOS"
|
||||
@@ -15,6 +16,7 @@ JPushPlugin.prototype.call_native = function(name, args, callback){
|
||||
ret = cordova.exec(callback,this.error_callback,'JPushPlugin',name,args);
|
||||
return ret;
|
||||
}
|
||||
//public plugin function
|
||||
|
||||
JPushPlugin.prototype.startLogPageView = function(data){
|
||||
if(this.isPlatformIOS()){
|
||||
@@ -28,6 +30,12 @@ JPushPlugin.prototype.stopLogPageView = function(data){
|
||||
}
|
||||
}
|
||||
|
||||
JPushPlugin.prototype.beginLogPageView = function(pageName,duration){
|
||||
if(this.isPlatformIOS()){
|
||||
this.call_native( "beginLogPageView",[pageName,duration],null);
|
||||
}
|
||||
}
|
||||
|
||||
JPushPlugin.prototype.setTagsWithAlias = function(tags,alias){
|
||||
try{
|
||||
if(tags==null){
|
||||
|
||||
Reference in New Issue
Block a user