add ios sdk 1.8.1

This commit is contained in:
zhangqinghe
2014-09-24 20:02:07 +08:00
parent e24a929ed3
commit b1e00baeb8
4 changed files with 185 additions and 15 deletions
+38 -2
View File
@@ -76,7 +76,43 @@ JPushPlugin.prototype.setAlias = function(data){
console.log(exception);
}
}
JPushPlugin.prototype.setBadge = function(data){
if(this.isPlatformIOS()){
try{
this.call_native("setBadge",[data],null);
}
catch(exception){
console.log(exception);
}
}
}
JPushPlugin.prototype.resetBadge = function(){
if(this.isPlatformIOS()){
try{
var data=[];
this.call_native("resetBadge",[data],null);
}
catch(exception){
console.log(exception);
}
}
}
JPushPlugin.prototype.setDebugModeFromIos = function(){
if(this.isPlatformIOS()){
var data=[];
this.call_native("setDebugModeFromIos",[data],null);
}
}
JPushPlugin.prototype.setLogOFF = function(){
if(this.isPlatformIOS()){
var data=[];
this.call_native("setLogOFF",[data],null);
}
}
JPushPlugin.prototype.receiveMessageIniOSCallback = function(data){
try{
console.log("JPushPlugin:receiveMessageIniOSCallback--data:"+data);
@@ -91,8 +127,8 @@ JPushPlugin.prototype.receiveMessageIniOSCallback = function(data){
JPushPlugin.prototype.receiveMessageInAndroidCallback = function(data){
try{
console.log("JPushPlugin:receiveMessageInAndroidCallback");
console.log(data);
//var bToObj=JSON.parse(data);
//console.log(data);
//ecvar bToObj=JSON.parse(data);
//var message = bToObj.message;
//var extras = bToObj.extras;