From c2818fb193585d4dbda00008b41cd09b13ff6ab1 Mon Sep 17 00:00:00 2001 From: darkterrorooo Date: Thu, 26 Nov 2015 13:10:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3iOS=20=E6=8E=A5=E5=8F=A3=20is?= =?UTF-8?q?PushStopped=20=E7=9A=84=E8=BF=94=E5=9B=9E=E5=80=BC=EF=BC=8C?= =?UTF-8?q?=E4=BD=BFstop=20=E8=BF=94=E5=9B=9E=201=EF=BC=8C=E9=9D=9Estop=20?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=200?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin.xml | 10 +++++----- src/android/MyReceiver.java | 2 +- src/ios/Plugins/JPushPlugin.m | 4 ++-- src/ios/lib/APService.h | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/plugin.xml b/plugin.xml index 8abab10..bad3973 100644 --- a/plugin.xml +++ b/plugin.xml @@ -29,7 +29,7 @@ - + @@ -154,10 +154,10 @@ - - - - + + + + diff --git a/src/android/MyReceiver.java b/src/android/MyReceiver.java index 2eff5d9..d36b1fb 100644 --- a/src/android/MyReceiver.java +++ b/src/android/MyReceiver.java @@ -18,7 +18,7 @@ public class MyReceiver extends BroadcastReceiver { if (JPushInterface.ACTION_REGISTRATION_ID.equals(intent.getAction())) { - }else if (JPushInterface.ACTION_UNREGISTER.equals(intent.getAction())){ +// }else if (JPushInterface.ACTION_UNREGISTER.equals(intent.getAction())){ } else if (JPushInterface.ACTION_MESSAGE_RECEIVED.equals(intent.getAction())) { handlingReceivedMessage(intent); diff --git a/src/ios/Plugins/JPushPlugin.m b/src/ios/Plugins/JPushPlugin.m index 6d1435b..a2573eb 100644 --- a/src/ios/Plugins/JPushPlugin.m +++ b/src/ios/Plugins/JPushPlugin.m @@ -109,9 +109,9 @@ static NSDictionary *_luanchOptions=nil; NSNumber *result; if ([[UIApplication sharedApplication] isRegisteredForRemoteNotifications ]) { - result=@(1); - }else{ result=@(0); + }else{ + result=@(1); } CDVPluginResult * pushResult=[self pluginResultForValue:result]; if (pushResult) { diff --git a/src/ios/lib/APService.h b/src/ios/lib/APService.h index bd529c3..ae2e6d7 100644 --- a/src/ios/lib/APService.h +++ b/src/ios/lib/APService.h @@ -4,7 +4,7 @@ // // Created by JPush on 12-8-15. // Copyright (c) 2012年 HXHG. All rights reserved. -// Version: 1.8.3 +// Version: 1.8.8 @class CLRegion; @class UILocalNotification;